apps-menu: Add some padding to ScrollView

In case the scroll bar is visible, is is currently positioned at
the very edge of the popup, which looks fairly bad; so add some
minimal padding.

https://bugzilla.gnome.org/show_bug.cgi?id=700852
This commit is contained in:
Florian Müllner
2013-05-22 19:16:44 +02:00
parent 274a6f040c
commit 292a48073a
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -424,7 +424,7 @@ const ApplicationsButton = new Lang.Class({
this.leftBox = new St.BoxLayout({ vertical: true });
this.applicationsScrollBox = new St.ScrollView({ x_fill: true, y_fill: false,
y_align: St.Align.START,
style_class: 'vfade' });
style_class: 'apps-menu vfade' });
this.applicationsScrollBox.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
let vscroll = this.applicationsScrollBox.get_vscroll_bar();
vscroll.connect('scroll-start', Lang.bind(this, function() {
+7 -1
View File
@@ -1 +1,7 @@
/* none used*/
.apps-menu:ltr {
padding-right: 3px;
}
.apps-menu:rtl {
padding-left: 3px;
}