mirror of
https://github.com/zen-browser/desktop.git
synced 2026-02-22 03:16:40 +00:00
feat: Correctly calculate certain popup opening coordinates, b=no-bug, c=folders, workspaces
This commit is contained in:
@@ -730,12 +730,12 @@ class nsZenFolders extends nsZenDOMOperatedFeature {
|
||||
get #searchPopupOptions() {
|
||||
const isRightSide = gZenVerticalTabsManager._prefsRightSide;
|
||||
const position = isRightSide ? "start_before" : "start_before";
|
||||
let size = Math.min(this.#popup.querySelector("#zen-folder-tabs-list").children.length, 6) + 1;
|
||||
let size = Math.min(this.#popup.querySelector("#zen-folder-tabs-list").children.length, 6);
|
||||
size *= 48;
|
||||
return {
|
||||
position,
|
||||
x: -10,
|
||||
y: -size / 4,
|
||||
y: size / -2,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -185,7 +185,7 @@ export class nsZenThemePicker extends nsZenMultiWindowFeature {
|
||||
position: "start_before",
|
||||
triggerEvent: event,
|
||||
y: fromForm ? -160 : 0,
|
||||
x: 10,
|
||||
x: -10,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user