From 811a4103e4da56177417228092924d381331d36f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 11 Jul 2024 19:39:04 +0200 Subject: [PATCH] lookingGlass: Include ScrollView in inspector styling All styling currently happens on the ScrollView child, which means that instead of a scrollbar inside the dialog to move the content, we have a scrollbar next to the dialog that moves the dialog as a whole. Fix this by simply moving the style classes to the up-most parent. Part-of: --- js/ui/lookingGlass.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index 987700877..e48306090 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -387,6 +387,8 @@ const ObjInspector = GObject.registerClass( class ObjInspector extends St.ScrollView { _init(lookingGlass) { super._init({ + name: 'LookingGlassPropertyInspector', + style_class: 'lg-dialog', pivot_point: new Graphene.Point({x: 0.5, y: 0.5}), }); @@ -396,8 +398,6 @@ class ObjInspector extends St.ScrollView { this._parentList = []; this._container = new St.BoxLayout({ - name: 'LookingGlassPropertyInspector', - style_class: 'lg-dialog', vertical: true, x_expand: true, y_expand: true,