[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44776] [Qt] Restore window button does not tr
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #44776] [Qt] Restore window button does not trigger a repaint event for its content |
Date: |
Mon, 15 Aug 2016 21:34:37 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 |
Follow-up Comment #15, bug #44776 (project octave):
Actually it turns out that in comment #14 I was completely wrong.
The QEvent::Resize / resizeEvent does actually reach the figure. The problem
appears to be that the children of the figure get asked to update themselves
before the figures properties are updated.
Basically it appears that the resize of the child objects occurs before the
resize to the figure itself. Leading them to be updating their size on the
wrong number.
I've attached a (hacky) partial bug fix for this. In order to check the
difference look at scrolling and maximizing this:
uicontrol('Style', 'text', 'String', 'TEXT', 'Units', 'normalized',
'Position', [0 0 1 1])
This doesn't fix the sombrero issue however.
My fix works by forcing an update to the figure properties before passing the
update down to the container. Further, by forcing the update rather than
passing a function this ensures that it happens before the child objects.
I suspect that this might not be the correct thing to do but hopefully it will
show the way to properly fix this.
(file #38225)
_______________________________________________________
Additional Item Attachment:
File name: bug-44716-partial-fix-20160815.diff Size:1 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44776>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #44776] [Qt] Restore window button does not trigger a repaint event for its content, anonymous, 2016/08/06
- [Octave-bug-tracker] [bug #44776] [Qt] Restore window button does not trigger a repaint event for its content,
anonymous <=
- [Octave-bug-tracker] [bug #44776] [Qt] Restore window button does not trigger a repaint event for its content, anonymous, 2016/08/18
- [Octave-bug-tracker] [bug #44776] [Qt] Restore window button does not trigger a repaint event for its content, anonymous, 2016/08/18
- [Octave-bug-tracker] [bug #44776] [Qt] Restore window button does not trigger a repaint event for its content, Dan Sebald, 2016/08/18
- [Octave-bug-tracker] [bug #44776] [Qt] Restore window button does not trigger a repaint event for its content, anonymous, 2016/08/19
- [Octave-bug-tracker] [bug #44776] [Qt] Restore window button does not trigger a repaint event for its content, Dan Sebald, 2016/08/19
- [Octave-bug-tracker] [bug #44776] [Qt] Restore window button does not trigger a repaint event for its content, anonymous, 2016/08/19
- [Octave-bug-tracker] [bug #44776] [Qt] Restore window button does not trigger a repaint event for its content, Dan Sebald, 2016/08/19
- [Octave-bug-tracker] [bug #44776] [Qt] Restore window button does not trigger a repaint event for its content, anonymous, 2016/08/20