[gnome-shell] dash: Subtract vertical margins from availHeight
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] dash: Subtract vertical margins from availHeight
- Date: Wed, 16 Feb 2022 20:14:44 +0000 (UTC)
commit 2607880bf630c91869bea28c63b575970af5a057
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>
js/ui/dash.js | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/js/ui/dash.js b/js/ui/dash.js
index 311117471d..7c449f8515 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]