popup-sub-menu: Adjust scrollbar style
Slightly adjust the style, so that scrollbars in submenus look slightly less disconnected from the scrolled content. https://bugzilla.gnome.org/show_bug.cgi?id=646001
This commit is contained in:

committed by
Owen W. Taylor

parent
a7df1a3d77
commit
d25418ba04
@ -1042,7 +1042,7 @@ PopupSubMenu.prototype = {
|
||||
__proto__: PopupMenuBase.prototype,
|
||||
|
||||
_init: function(sourceActor, sourceArrow) {
|
||||
PopupMenuBase.prototype._init.call(this, sourceActor, 'popup-sub-menu');
|
||||
PopupMenuBase.prototype._init.call(this, sourceActor);
|
||||
|
||||
this._arrow = sourceArrow;
|
||||
this._arrow.rotation_center_z_gravity = Clutter.Gravity.CENTER;
|
||||
@ -1050,7 +1050,8 @@ PopupSubMenu.prototype = {
|
||||
// Since a function of a submenu might be to provide a "More.." expander
|
||||
// with long content, we make it scrollable - the scrollbar will only take
|
||||
// effect if a CSS max-height is set on the top menu.
|
||||
this.actor = new St.ScrollView({ hscrollbar_policy: Gtk.PolicyType.NEVER,
|
||||
this.actor = new St.ScrollView({ style_class: 'popup-sub-menu',
|
||||
hscrollbar_policy: Gtk.PolicyType.NEVER,
|
||||
vscrollbar_policy: Gtk.PolicyType.NEVER });
|
||||
|
||||
// StScrollbar plays dirty tricks with events, calling
|
||||
|
Reference in New Issue
Block a user