commit 105624ee88b292a942ded7ac32f9e6e8110f0e63
parent aea0377358513b18c8a803392277743f8e998609
Author: Gabriel Astorgano <gaastorgano@gmail.com>
Date: Mon, 22 Dec 2025 17:55:57 +0000
Bug 2004608 Use moving tabs offset on vertical tabs r=tabbrowser-reviewers,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D276309
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/browser/components/tabbrowser/content/tab-stacking.js b/browser/components/tabbrowser/content/tab-stacking.js
@@ -758,13 +758,13 @@
}
} else if (isGrid) {
movingTab.style.top = rect.top - pinnedRect.top + "px";
- movingTab.style.left = rect.left + "px";
+ movingTab.style.left = rect.left - movingTabsOffsetX + "px";
} else if (this._tabbrowserTabs.verticalMode) {
movingTab.style.top = rect.top - tabContainerRect.top + "px";
} else if (this._rtlMode) {
- movingTab.style.left = rect.left + "px";
+ movingTab.style.left = rect.left - movingTabsOffsetX + "px";
} else {
- movingTab.style.left = rect.left + "px";
+ movingTab.style.left = rect.left - movingTabsOffsetX + "px";
}
}