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({
|
||||
style_class: 'login-dialog-auth-list-view',
|
||||
hscrollbar_policy: St.PolicyType.NEVER,
|
||||
child: this._box,
|
||||
});
|
||||
this.add_child(this._scrollView);
|
||||
|
@ -168,7 +168,6 @@ const UserList = GObject.registerClass({
|
||||
style_class: 'login-dialog-user-list-view',
|
||||
x_expand: true,
|
||||
y_expand: true,
|
||||
hscrollbar_policy: St.PolicyType.NEVER,
|
||||
});
|
||||
|
||||
this._box = new St.BoxLayout({
|
||||
@ -490,7 +489,6 @@ export const LoginDialog = GObject.registerClass({
|
||||
this._bannerView = new St.ScrollView({
|
||||
style_class: 'login-dialog-banner-view',
|
||||
opacity: 0,
|
||||
hscrollbar_policy: St.PolicyType.NEVER,
|
||||
child: bannerBox,
|
||||
});
|
||||
this.add_child(this._bannerView);
|
||||
|
@ -954,7 +954,6 @@ class CalendarMessageList extends St.Widget {
|
||||
style_class: 'vfade',
|
||||
overlay_scrollbars: true,
|
||||
x_expand: true, y_expand: true,
|
||||
hscrollbar_policy: St.PolicyType.NEVER,
|
||||
});
|
||||
box.add_child(this._scrollView);
|
||||
|
||||
|
@ -876,8 +876,6 @@ class ChatNotificationBanner extends MessageTray.NotificationBanner {
|
||||
});
|
||||
this._scrollArea = new St.ScrollView({
|
||||
style_class: 'chat-scrollview vfade',
|
||||
vscrollbar_policy: St.PolicyType.AUTOMATIC,
|
||||
hscrollbar_policy: St.PolicyType.NEVER,
|
||||
visible: this.expanded,
|
||||
child: this._contentArea,
|
||||
});
|
||||
|
@ -929,7 +929,6 @@ class DateMenuButton extends PanelMenu.Button {
|
||||
style_class: 'datemenu-displays-section vfade',
|
||||
x_expand: true,
|
||||
overlay_scrollbars: true,
|
||||
hscrollbar_policy: St.PolicyType.NEVER,
|
||||
vscrollbar_policy: St.PolicyType.EXTERNAL,
|
||||
child: displaysBox,
|
||||
});
|
||||
|
@ -266,7 +266,6 @@ export const ListSection = GObject.registerClass({
|
||||
|
||||
this._listScrollView = new St.ScrollView({
|
||||
style_class: 'dialog-list-scrollview',
|
||||
hscrollbar_policy: St.PolicyType.NEVER,
|
||||
child: this.list,
|
||||
});
|
||||
|
||||
|
@ -164,7 +164,6 @@ const Notebook = GObject.registerClass({
|
||||
|
||||
const scrollview = new St.ScrollView({
|
||||
child,
|
||||
hscrollbar_policy: St.PolicyType.NEVER,
|
||||
y_expand: true,
|
||||
});
|
||||
|
||||
@ -390,7 +389,6 @@ class ObjInspector extends St.ScrollView {
|
||||
_init(lookingGlass) {
|
||||
super._init({
|
||||
pivot_point: new Graphene.Point({x: 0.5, y: 0.5}),
|
||||
hscrollbar_policy: St.PolicyType.NEVER,
|
||||
});
|
||||
|
||||
this._obj = null;
|
||||
|
@ -1014,7 +1014,6 @@ export class PopupSubMenu extends PopupMenuBase {
|
||||
// effect if a CSS max-height is set on the top menu.
|
||||
this.actor = new St.ScrollView({
|
||||
style_class: 'popup-sub-menu',
|
||||
hscrollbar_policy: St.PolicyType.NEVER,
|
||||
vscrollbar_policy: St.PolicyType.NEVER,
|
||||
child: this.box,
|
||||
});
|
||||
|
@ -573,7 +573,6 @@ export const SearchResultsView = GObject.registerClass({
|
||||
style_class: 'search-display vfade',
|
||||
x_expand: true,
|
||||
y_expand: true,
|
||||
hscrollbar_policy: St.PolicyType.NEVER,
|
||||
child: this._content,
|
||||
});
|
||||
|
||||
|
@ -49,7 +49,6 @@ const NotificationsBox = GObject.registerClass({
|
||||
});
|
||||
|
||||
this._scrollView = new St.ScrollView({
|
||||
hscrollbar_policy: St.PolicyType.NEVER,
|
||||
child: this._notificationBox,
|
||||
});
|
||||
this.add_child(this._scrollView);
|
||||
|
Loading…
Reference in New Issue
Block a user