mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 974804 - UITour: Calling recreatePopup on the menu panel before it's ready leads to a computed width of 0 for the panel scroller. r=adw
This commit is contained in:
parent
8c599ee8ea
commit
29626e8b0a
@ -927,6 +927,12 @@ this.UITour = {
|
||||
recreatePopup: function(aPanel) {
|
||||
// After changing popup attributes that relate to how the native widget is created
|
||||
// (e.g. @noautohide) we need to re-create the frame/widget for it to take effect.
|
||||
if (aPanel.hidden) {
|
||||
// If the panel is already hidden, we don't need to recreate it but flush
|
||||
// in case someone just hid it.
|
||||
aPanel.clientWidth; // flush
|
||||
return;
|
||||
}
|
||||
aPanel.hidden = true;
|
||||
aPanel.clientWidth; // flush
|
||||
aPanel.hidden = false;
|
||||
|
Loading…
Reference in New Issue
Block a user