lookingGlass: Don't hide scroll bar manually
The code predates the policy properties, which provide a cleaner way of achieving the desired behavior. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3020>
This commit is contained in:
parent
65e56183b1
commit
5b84967deb
@ -162,8 +162,11 @@ const Notebook = GObject.registerClass({
|
|||||||
labelBox.add_child(label);
|
labelBox.add_child(label);
|
||||||
this.tabControls.add_child(labelBox);
|
this.tabControls.add_child(labelBox);
|
||||||
|
|
||||||
const scrollview = new St.ScrollView({y_expand: true, child});
|
const scrollview = new St.ScrollView({
|
||||||
scrollview.hscroll.hide();
|
child,
|
||||||
|
hscrollbar_policy: St.PolicyType.NEVER,
|
||||||
|
y_expand: true,
|
||||||
|
});
|
||||||
|
|
||||||
const tabData = {
|
const tabData = {
|
||||||
child,
|
child,
|
||||||
@ -387,6 +390,7 @@ class ObjInspector extends St.ScrollView {
|
|||||||
_init(lookingGlass) {
|
_init(lookingGlass) {
|
||||||
super._init({
|
super._init({
|
||||||
pivot_point: new Graphene.Point({x: 0.5, y: 0.5}),
|
pivot_point: new Graphene.Point({x: 0.5, y: 0.5}),
|
||||||
|
hscrollbar_policy: St.PolicyType.NEVER,
|
||||||
});
|
});
|
||||||
|
|
||||||
this._obj = null;
|
this._obj = null;
|
||||||
@ -394,7 +398,6 @@ class ObjInspector extends St.ScrollView {
|
|||||||
|
|
||||||
this._parentList = [];
|
this._parentList = [];
|
||||||
|
|
||||||
this.hscroll.hide();
|
|
||||||
this._container = new St.BoxLayout({
|
this._container = new St.BoxLayout({
|
||||||
name: 'LookingGlassPropertyInspector',
|
name: 'LookingGlassPropertyInspector',
|
||||||
style_class: 'lg-dialog',
|
style_class: 'lg-dialog',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user