failed to update the size of the floating tab bar in some cases (ex. Firebug's panel)

This commit is contained in:
Piro / SHIMODA Hiroshi 2012-01-31 03:15:00 +09:00
parent 00d6ef7609
commit 80679b2893

View File

@ -4114,14 +4114,17 @@ TreeStyleTabBrowser.prototype = {
{ {
if ( if (
!aEvent.originalTarget || !aEvent.originalTarget ||
!(aEvent.originalTarget instanceof Ci.nsIDOMWindow) || !(aEvent.originalTarget instanceof Ci.nsIDOMWindow)
aEvent.originalTarget.top != this.mTabBrowser.contentWindow
) )
return; return;
this.mTabBrowser.mTabContainer.adjustTabstrip(); var resizedTopFrame = aEvent.originalTarget.top;
this.updateInvertedTabContentsOrder(true); if (resizedTopFrame == this.mTabBrowser.contentWindow ||
this.updateFloatingTabbar(this.kTABBAR_UPDATE_BY_WINDOW_RESIZE); resizedTopFrame == this.window) {
this.mTabBrowser.mTabContainer.adjustTabstrip();
this.updateInvertedTabContentsOrder(true);
this.updateFloatingTabbar(this.kTABBAR_UPDATE_BY_WINDOW_RESIZE);
}
}, },
onPopupShowing : function TSTBrowser_onPopupShowing(aEvent) onPopupShowing : function TSTBrowser_onPopupShowing(aEvent)