[gnome-shell/gnome-40] dash: Subtract vertical margins from availHeight
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-40] dash: Subtract vertical margins from availHeight
- Date: Sun, 20 Mar 2022 20:21:40 +0000 (UTC)
commit 0de0a1f5940784eb4a7ca9ecf5e92f5277ceb0d8
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]