js: Rely on default scroll policy where appropriate
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3020>
This commit is contained in:
parent
a190a0830b
commit
eb8861e9b8
@ -92,7 +92,6 @@ export const AuthList = GObject.registerClass({
|
|||||||
|
|
||||||
this._scrollView = new St.ScrollView({
|
this._scrollView = new St.ScrollView({
|
||||||
style_class: 'login-dialog-auth-list-view',
|
style_class: 'login-dialog-auth-list-view',
|
||||||
hscrollbar_policy: St.PolicyType.NEVER,
|
|
||||||
child: this._box,
|
child: this._box,
|
||||||
});
|
});
|
||||||
this.add_child(this._scrollView);
|
this.add_child(this._scrollView);
|
||||||
|
@ -168,7 +168,6 @@ const UserList = GObject.registerClass({
|
|||||||
style_class: 'login-dialog-user-list-view',
|
style_class: 'login-dialog-user-list-view',
|
||||||
x_expand: true,
|
x_expand: true,
|
||||||
y_expand: true,
|
y_expand: true,
|
||||||
hscrollbar_policy: St.PolicyType.NEVER,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this._box = new St.BoxLayout({
|
this._box = new St.BoxLayout({
|
||||||
@ -490,7 +489,6 @@ export const LoginDialog = GObject.registerClass({
|
|||||||
this._bannerView = new St.ScrollView({
|
this._bannerView = new St.ScrollView({
|
||||||
style_class: 'login-dialog-banner-view',
|
style_class: 'login-dialog-banner-view',
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
hscrollbar_policy: St.PolicyType.NEVER,
|
|
||||||
child: bannerBox,
|
child: bannerBox,
|
||||||
});
|
});
|
||||||
this.add_child(this._bannerView);
|
this.add_child(this._bannerView);
|
||||||
|
@ -954,7 +954,6 @@ class CalendarMessageList extends St.Widget {
|
|||||||
style_class: 'vfade',
|
style_class: 'vfade',
|
||||||
overlay_scrollbars: true,
|
overlay_scrollbars: true,
|
||||||
x_expand: true, y_expand: true,
|
x_expand: true, y_expand: true,
|
||||||
hscrollbar_policy: St.PolicyType.NEVER,
|
|
||||||
});
|
});
|
||||||
box.add_child(this._scrollView);
|
box.add_child(this._scrollView);
|
||||||
|
|
||||||
|
@ -876,8 +876,6 @@ class ChatNotificationBanner extends MessageTray.NotificationBanner {
|
|||||||
});
|
});
|
||||||
this._scrollArea = new St.ScrollView({
|
this._scrollArea = new St.ScrollView({
|
||||||
style_class: 'chat-scrollview vfade',
|
style_class: 'chat-scrollview vfade',
|
||||||
vscrollbar_policy: St.PolicyType.AUTOMATIC,
|
|
||||||
hscrollbar_policy: St.PolicyType.NEVER,
|
|
||||||
visible: this.expanded,
|
visible: this.expanded,
|
||||||
child: this._contentArea,
|
child: this._contentArea,
|
||||||
});
|
});
|
||||||
|
@ -929,7 +929,6 @@ class DateMenuButton extends PanelMenu.Button {
|
|||||||
style_class: 'datemenu-displays-section vfade',
|
style_class: 'datemenu-displays-section vfade',
|
||||||
x_expand: true,
|
x_expand: true,
|
||||||
overlay_scrollbars: true,
|
overlay_scrollbars: true,
|
||||||
hscrollbar_policy: St.PolicyType.NEVER,
|
|
||||||
vscrollbar_policy: St.PolicyType.EXTERNAL,
|
vscrollbar_policy: St.PolicyType.EXTERNAL,
|
||||||
child: displaysBox,
|
child: displaysBox,
|
||||||
});
|
});
|
||||||
|
@ -266,7 +266,6 @@ export const ListSection = GObject.registerClass({
|
|||||||
|
|
||||||
this._listScrollView = new St.ScrollView({
|
this._listScrollView = new St.ScrollView({
|
||||||
style_class: 'dialog-list-scrollview',
|
style_class: 'dialog-list-scrollview',
|
||||||
hscrollbar_policy: St.PolicyType.NEVER,
|
|
||||||
child: this.list,
|
child: this.list,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -164,7 +164,6 @@ const Notebook = GObject.registerClass({
|
|||||||
|
|
||||||
const scrollview = new St.ScrollView({
|
const scrollview = new St.ScrollView({
|
||||||
child,
|
child,
|
||||||
hscrollbar_policy: St.PolicyType.NEVER,
|
|
||||||
y_expand: true,
|
y_expand: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -390,7 +389,6 @@ 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;
|
||||||
|
@ -1014,7 +1014,6 @@ export class PopupSubMenu extends PopupMenuBase {
|
|||||||
// effect if a CSS max-height is set on the top menu.
|
// effect if a CSS max-height is set on the top menu.
|
||||||
this.actor = new St.ScrollView({
|
this.actor = new St.ScrollView({
|
||||||
style_class: 'popup-sub-menu',
|
style_class: 'popup-sub-menu',
|
||||||
hscrollbar_policy: St.PolicyType.NEVER,
|
|
||||||
vscrollbar_policy: St.PolicyType.NEVER,
|
vscrollbar_policy: St.PolicyType.NEVER,
|
||||||
child: this.box,
|
child: this.box,
|
||||||
});
|
});
|
||||||
|
@ -573,7 +573,6 @@ export const SearchResultsView = GObject.registerClass({
|
|||||||
style_class: 'search-display vfade',
|
style_class: 'search-display vfade',
|
||||||
x_expand: true,
|
x_expand: true,
|
||||||
y_expand: true,
|
y_expand: true,
|
||||||
hscrollbar_policy: St.PolicyType.NEVER,
|
|
||||||
child: this._content,
|
child: this._content,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -49,7 +49,6 @@ const NotificationsBox = GObject.registerClass({
|
|||||||
});
|
});
|
||||||
|
|
||||||
this._scrollView = new St.ScrollView({
|
this._scrollView = new St.ScrollView({
|
||||||
hscrollbar_policy: St.PolicyType.NEVER,
|
|
||||||
child: this._notificationBox,
|
child: this._notificationBox,
|
||||||
});
|
});
|
||||||
this.add_child(this._scrollView);
|
this.add_child(this._scrollView);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user