GNOME Bugzilla – Bug 645949
network: wireless list expands then shrinks again on first use
Last modified: 2011-04-04 12:27:14 UTC
It seems when I click on "More" in the wireless section for the first time, it is expanded to fill up the whole screen height, even if the list is shorter than that. The visual effect is a sort of flicker, where the menu resizes to full height first and to the actual list height immediately after.
Does it happen with e.g. bluetooth submenus? (could be related to BoxPointer relayout code)
(In reply to comment #1) > Does it happen with e.g. bluetooth submenus? > (could be related to BoxPointer relayout code) No, the bluetooth submenu works fine (but it has two lines instead of 10+ lines in the network menu).
Created attachment 184815 [details] [review] Fix expand animation for submenus Figuring out the size of an unmapped actor is not completely reliable because styles aren't fully assigned until an actor is mapped. So show the submenu before computing the size we want to tween to.
See https://bugzilla.gnome.org/show_bug.cgi?id=632818#c5 for (most) of the root cause. I attached a patch there for StIcon that *almost* fixes the problem but still leaves the target size about 10 pixels off, probably because of some other style-changed handler. This patch is simpler and gives a fully correct result.
Comment on attachment 184815 [details] [review] Fix expand animation for submenus ok
Pushed with r-t approval. Attachment 184815 [details] pushed as 82e2ab8 - Fix expand animation for submenus