[gnome-shell/gnome-41] dash: Subtract vertical margins from availHeight



commit 5d1bc7953879fa5e40e548e7e5ef7d8cb5d4f5da
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Wed Feb 16 20:04:03 2022 +0100

    dash: Subtract vertical margins from availHeight
    
    The vertical margins are part of this._maxHeight, so we need to subtract
    it in order to propery limit icon sizes when the available height is too
    small.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2191>
    (cherry picked from commit 2607880bf630c91869bea28c63b575970af5a057)

 js/ui/dash.js | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/js/ui/dash.js b/js/ui/dash.js
index 08902c436a..c3b9a3e05d 100644
--- a/js/ui/dash.js
+++ b/js/ui/dash.js
@@ -610,6 +610,7 @@ var Dash = GObject.registerClass({
                        (iconChildren.length - 1) * spacing;
 
         let availHeight = this._maxHeight;
+        availHeight -= this.margin_top + this.margin_bottom;
         availHeight -= this._background.get_theme_node().get_vertical_padding();
         availHeight -= themeNode.get_vertical_padding();
         availHeight -= buttonHeight - iconHeight;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]