[autohide] When the window is resized while the tab bar is expanded, hide it before updating width of the bar. (fix for https://github.com/piroor/treestyletab/issues#issue/18 )

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-01-10 12:27:02 +09:00
parent 5d4d478802
commit 141e819498
2 changed files with 4 additions and 1 deletions

View File

@ -1243,6 +1243,9 @@ TreeStyleTabBrowser.prototype = {
this.mTabBrowser.getAttribute(this.kFIXED) != 'true') {
strip.setAttribute('layer', true); // https://bugzilla.mozilla.org/show_bug.cgi?id=590468
if (this.autoHide.expanded && (aReason & this.kTABBAR_UPDATE_SYNC_TO_PLACEHOLDER))
this.autoHide.hide();
let box = this._tabStripPlaceHolder.boxObject;
let root = document.documentElement.boxObject;

View File

@ -188,7 +188,7 @@ var TreeStyleTabUtils = {
kTABBAR_UPDATE_BY_PRIVATE_BROWSING : (1 << 8),
kTABBAR_UPDATE_BY_AUTOHIDE : (1 << 9),
kTABBAR_UPDATE_BY_INITIALIZE : (1 << 10),
kTABBAR_UPDATE_NOW : (1 << 5) | (1 << 9) | (1 << 10),
kTABBAR_UPDATE_NOW : (1 << 5) | (1 << 6) | (1 << 9) | (1 << 10),
kTABBAR_UPDATE_SYNC_TO_TABBAR : (1 << 0) | (1 << 1) | (1 << 2) | (1 << 5) | (1 << 8) | (1 << 9),
kTABBAR_UPDATE_SYNC_TO_PLACEHOLDER : (1 << 3) | (1 << 4) | (1 << 6) | (1 << 7) | (1 << 10),