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:
Florian Müllner 2023-11-15 14:54:18 +01:00 committed by Marge Bot
parent a190a0830b
commit eb8861e9b8
10 changed files with 0 additions and 13 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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,
});

View File

@ -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,
});

View File

@ -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,
});

View File

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

View File

@ -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,
});

View File

@ -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,
});

View File

@ -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);