Fixed dialog not showing for full screen windows

This commit is contained in:
Mauro Balades
2024-04-09 00:58:10 +02:00
parent ffbaa42e6c
commit bd0fea215d
3 changed files with 15 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/browser/components/customizableui/PanelMultiView.sys.mjs b/browser/components/customizableui/PanelMultiView.sys.mjs
index a97889f08a61e68ebf5bc5d3749362a40d48bb77..5770b0e86bbe01180c174f5d512133c577c4e0ac 100644
--- a/browser/components/customizableui/PanelMultiView.sys.mjs
+++ b/browser/components/customizableui/PanelMultiView.sys.mjs
@@ -1205,7 +1205,7 @@ export var PanelMultiView = class extends AssociatedToNode {
} else {
let anchorScreenBottom = anchor.screenY + anchorRect.height;
let cssAvailHeight = availHeight.value / screen.defaultCSSScaleFactor;
- maxHeight = cssAvailTop + cssAvailHeight - anchorScreenBottom;
+ maxHeight = cssAvailTop + cssAvailHeight;
}
// To go from the maximum height of the panel to the maximum height of