Bug 455113 - Tabbar and control-bar should not show/hide with the same drag event. Missing changes. r=mark.finkle.

This commit is contained in:
Oleg Romashin 2008-10-09 22:01:18 -05:00
Родитель decd7ec04f
Коммит d194e04481
1 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -290,18 +290,23 @@ var BrowserUI = {
newLeft = -(tabbarW + sidebarW);
// Set the UI mode based on where we ended up
var noneMode = (gContentBox.style.marginTop == "0px" ? UIMODE_NONE : UIMODE_URLVIEW);
if (newLeft > -(tabbarW - tabbarW / 3) && newLeft <= 0) {
if (this._dragData.uiMode == UIMODE_CONTROLS)
if (this._dragData.uiMode == UIMODE_CONTROLS) {
this.mode = noneMode;
return;
}
this.mode = UIMODE_TABS;
}
else if (newLeft >= -(tabbarW + sidebarW) && newLeft < -(tabbarW + sidebarW / 3)) {
if (this._dragData.uiMode == UIMODE_TABS)
if (this._dragData.uiMode == UIMODE_TABS) {
this.mode = noneMode;
return;
}
this.mode = UIMODE_CONTROLS;
}
else
this.mode = (gContentBox.style.marginTop == "0px" ? UIMODE_NONE : UIMODE_URLVIEW);
this.mode = noneMode;
tabbar.left = newLeft;