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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1519>
This commit is contained in:
Georges Basile Stavracas Neto 2020-12-03 13:01:29 -03:00
parent cd82691859
commit 9c10c34b07

View File

@ -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);