update the position of the floating tab bar without delay on the startup (fix for https://github.com/piroor/treestyletab/issues#issue/12 )

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-01-07 22:08:22 +09:00
parent f48c5744bd
commit e24ee77e71
2 changed files with 5 additions and 2 deletions

View File

@ -644,6 +644,8 @@ TreeStyleTabBrowser.prototype = {
this.autoHide;
this.updateFloatingTabbar(this.kTABBAR_UPDATE_BY_INITIALIZE);
this.fireTabbarPositionEvent(false, 'top', position); /* PUBLIC API */
b = null;

View File

@ -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,