mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-06 03:18:19 +00:00
37 lines
1.7 KiB
C++
37 lines
1.7 KiB
C++
diff --git a/browser/components/sidebar/browser-sidebar.js b/browser/components/sidebar/browser-sidebar.js
|
|
index 8b4f22ebc13fd013b82e9544dabcbe53d4429c13..22d21bcb825d35648213945bd4275d37b5c10a11 100644
|
|
--- a/browser/components/sidebar/browser-sidebar.js
|
|
+++ b/browser/components/sidebar/browser-sidebar.js
|
|
@@ -473,7 +473,7 @@ var SidebarController = {
|
|
*/
|
|
setPosition() {
|
|
// First reset all ordinals to match DOM ordering.
|
|
- let browser = document.getElementById("browser");
|
|
+ let browser = document.getElementById("zen-tabbox-wrapper");
|
|
[...browser.children].forEach((node, i) => {
|
|
node.style.order = i + 1;
|
|
});
|
|
@@ -487,9 +487,11 @@ var SidebarController = {
|
|
let boxOrdinal = this._box.style.order;
|
|
this._box.style.order = appcontent.style.order;
|
|
|
|
- appcontent.style.order = boxOrdinal;
|
|
+ // appcontent.style.order = boxOrdinal;
|
|
// the launcher should be on the right of the sidebar-box
|
|
- sidebarContainer.style.order = parseInt(this._box.style.order) + 1;
|
|
+ this._box.style.order = browser.children.length + 2;
|
|
+ this._splitter.style.order = browser.children.length + 1;
|
|
+ this._splitter.style.marginRight = 0;
|
|
// Indicate we've switched ordering to the box
|
|
this._box.setAttribute("positionend", true);
|
|
sidebarMain.setAttribute("positionend", true);
|
|
@@ -498,6 +500,8 @@ var SidebarController = {
|
|
this._box.removeAttribute("positionend");
|
|
sidebarMain.removeAttribute("positionend");
|
|
sidebarContainer.removeAttribute("positionend");
|
|
+ this._box.style.order = 1;
|
|
+ this._splitter.style.removeProperty("margin-right");
|
|
}
|
|
|
|
this.hideSwitcherPanel();
|