diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 72ab3add..d200c0e5 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -644,6 +644,8 @@ TreeStyleTabBrowser.prototype = { this.autoHide; + this.updateFloatingTabbar(this.kTABBAR_UPDATE_BY_INITIALIZE); + this.fireTabbarPositionEvent(false, 'top', position); /* PUBLIC API */ b = null; diff --git a/modules/utils.js b/modules/utils.js index 22964206..8ece049c 100644 --- a/modules/utils.js +++ b/modules/utils.js @@ -183,9 +183,10 @@ var TreeStyleTabUtils = { kTABBAR_UPDATE_BY_FULLSCREEN : (1 << 7), kTABBAR_UPDATE_BY_PRIVATE_BROWSING : (1 << 8), kTABBAR_UPDATE_BY_AUTOHIDE : (1 << 9), - kTABBAR_UPDATE_NOW : (1 << 5) | (1 << 9), + kTABBAR_UPDATE_BY_INITIALIZE : (1 << 10), + kTABBAR_UPDATE_NOW : (1 << 5) | (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), + kTABBAR_UPDATE_SYNC_TO_PLACEHOLDER : (1 << 3) | (1 << 4) | (1 << 6) | (1 << 7) | (1 << 10), MAX_TABBAR_SIZE_RATIO : 0.8, DEFAULT_SHRUNKEN_WIDTH_RATIO : 0.67,