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:
parent
6f2c99147c
commit
811a4103e4
@ -387,6 +387,8 @@ const ObjInspector = GObject.registerClass(
|
|||||||
class ObjInspector extends St.ScrollView {
|
class ObjInspector extends St.ScrollView {
|
||||||
_init(lookingGlass) {
|
_init(lookingGlass) {
|
||||||
super._init({
|
super._init({
|
||||||
|
name: 'LookingGlassPropertyInspector',
|
||||||
|
style_class: 'lg-dialog',
|
||||||
pivot_point: new Graphene.Point({x: 0.5, y: 0.5}),
|
pivot_point: new Graphene.Point({x: 0.5, y: 0.5}),
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -396,8 +398,6 @@ class ObjInspector extends St.ScrollView {
|
|||||||
this._parentList = [];
|
this._parentList = [];
|
||||||
|
|
||||||
this._container = new St.BoxLayout({
|
this._container = new St.BoxLayout({
|
||||||
name: 'LookingGlassPropertyInspector',
|
|
||||||
style_class: 'lg-dialog',
|
|
||||||
vertical: true,
|
vertical: true,
|
||||||
x_expand: true,
|
x_expand: true,
|
||||||
y_expand: true,
|
y_expand: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user