appDisplay: Center AllView content
If the AllView is scrolled, the vertical scrollbar will take away some horizontal space on one side, resulting in the content ending up slightly off-center. Account for this by using overlay-scrollbars instead. https://bugzilla.gnome.org/show_bug.cgi?id=694261
This commit is contained in:
parent
1bd8c67041
commit
6ea8f35343
@ -860,6 +860,11 @@ StScrollBar StButton#vhandle:active {
|
|||||||
padding: 4px 16px;
|
padding: 4px 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.all-apps > StBoxLayout {
|
||||||
|
/* horizontal padding to make sure the scrollbar doesn't overlap content */
|
||||||
|
padding: 0px 18px;
|
||||||
|
}
|
||||||
|
|
||||||
.app-folder-icon {
|
.app-folder-icon {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
@ -176,7 +176,8 @@ const AllView = new Lang.Class({
|
|||||||
y_align: St.Align.START,
|
y_align: St.Align.START,
|
||||||
x_expand: true,
|
x_expand: true,
|
||||||
y_expand: true,
|
y_expand: true,
|
||||||
style_class: 'vfade' });
|
overlay_scrollbars: true,
|
||||||
|
style_class: 'all-apps vfade' });
|
||||||
this.actor.add_actor(box);
|
this.actor.add_actor(box);
|
||||||
this.actor.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
|
this.actor.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
|
||||||
let action = new Clutter.PanAction({ interpolate: true });
|
let action = new Clutter.PanAction({ interpolate: true });
|
||||||
|
Loading…
Reference in New Issue
Block a user