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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3414>
This commit is contained in:
Florian Müllner 2024-07-11 19:39:04 +02:00
parent 6f2c99147c
commit 811a4103e4

View File

@ -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,