Hi,
-- I think I found the problem. My TabLayoutPanel lives within a SplitLayoutPanel. Whenever I move the splitbars, I also change the size of the TabLayoutPanel. Then, all children are resized, too, These also include the tabs that are not visible, so the chess boards in these tabs are moved to (0.0).
There are two problems here:
- moving the split bars causes onResize for all tabs, including the invisible ones
consequence: the boards are moved to (0,0), which increases flickering - the selection handler cannot resize the selected/visible tab immediately,
but has to do the resizing in deferred code
consequence: the board is visible at its wrong position for some milliseconds, which causes flickering
Why do I need deferred code here? Can I avoid this, for example having a handler that is called when the real sizes are present?
And if I cannot avoid deferred code, can I make supress repainting during the delay somehow?
How would you do this?
Magnus
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment