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;
var resizedTopFrame = aEvent.originalTarget.top;
if (resizedTopFrame == this.mTabBrowser.contentWindow ||
resizedTopFrame == this.window) {
this.mTabBrowser.mTabContainer.adjustTabstrip(); this.mTabBrowser.mTabContainer.adjustTabstrip();
this.updateInvertedTabContentsOrder(true); this.updateInvertedTabContentsOrder(true);
this.updateFloatingTabbar(this.kTABBAR_UPDATE_BY_WINDOW_RESIZE); this.updateFloatingTabbar(this.kTABBAR_UPDATE_BY_WINDOW_RESIZE);
}
}, },
onPopupShowing : function TSTBrowser_onPopupShowing(aEvent) onPopupShowing : function TSTBrowser_onPopupShowing(aEvent)