[gnome-shell] appDisplay: Take the viewBox into account for the contentBox of folders
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] appDisplay: Take the viewBox into account for the contentBox of folders
- Date: Sun, 8 Mar 2020 00:49:47 +0000 (UTC)
commit 1ec511771554a28b798fc0305a889c49292fdcbe
Author: Jonas Dreßler <verdre v0yd nl>
Date: Mon Feb 17 14:12:47 2020 +0100
appDisplay: Take the viewBox into account for the contentBox of folders
The viewBox has a border applied, so when we call adaptToSize using only
the content box of the container, the width of the border is not removed
from the content box and the grid will be allocated less space than what
we told it before using adaptToSize.
Fix that by adjusting the content box for the size of the viewBox, too.
This makes sure the correct amount of columns can be shown inside a
folder, since right now we only show 3 colums even though 4 would fit.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1011
js/ui/appDisplay.js | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index a602ba65db..f5e18d2ad2 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1902,6 +1902,7 @@ var AppFolderDialog = GObject.registerClass({
vfunc_allocate(box, flags) {
let contentBox = this.get_theme_node().get_content_box(box);
+ contentBox = this._viewBox.get_theme_node().get_content_box(contentBox);
let [, entryBoxHeight] = this._entryBox.get_size();
let spacing = this._viewBox.layout_manager.spacing;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]