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

@@ -1,4 +1,4 @@
<panelview id="PanelUI-zen-profiles" position="bottomleft topleft" side="right">
<panelview id="PanelUI-zen-profiles" position="bottomleft topleft" mainview="true" side="right">
<vbox>
<html:div id="PanelUI-zen-profiles-header">
<html:div id="PanelUI-zen-profiles-user-picture"></html:div>

View File

@@ -1,5 +1,5 @@
<toolbar id="zen-sidebar-icons-wrapper">
<toolbarbutton class="toolbarbutton-1 zen-sidebar-action-button" id="zen-profile-button" data-l10n-id="toolbar-button-account" onclick="ZenProfileDialogUI.showSubView(this, event)">
<toolbarbutton class="toolbarbutton-1 zen-sidebar-action-button chromeclass-toolbar-additional subviewbutton-nav" badge="true" closemenu="none" removable="true" delegatesanchor="true" cui-areatype="toolbar" id="zen-profile-button" data-l10n-id="toolbar-button-account" onclick="ZenProfileDialogUI.showSubView(this, event)">
<html:div class="zen-side-bar-profiles-button-panel-correction"></html:div>
<html:div></html:div>
</toolbarbutton>

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