From 9c10c34b0717423753b553aac1d508bb8522fc52 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Thu, 3 Dec 2020 13:01:29 -0300 Subject: [PATCH] appDisplay/baseAppView: Also consider its own content box when adapting Otherwise setting margins and paddings from CSS may result in the grid being adapted to the wrong size. Part-of: --- js/ui/appDisplay.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index d1af384d1..2f82b97f4 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -848,6 +848,7 @@ var BaseAppView = GObject.registerClass({ x2: width, y2: height, }); + box = this.get_theme_node().get_content_box(box); box = this._scrollView.get_theme_node().get_content_box(box); box = this._grid.get_theme_node().get_content_box(box);