dateMenu: Make sure that the event list fills the available width
Currently the menu has a hardcoded width which result into the hover effect of the "Open Calendar" item being "cut off" in the middle rather then reaching to the edge. To be consistent with other menu items, make it expand to fill the available space.
This commit is contained in:
parent
e46a26aec1
commit
fbf7528728
@ -104,10 +104,10 @@ DateMenuButton.prototype = {
|
|||||||
// Fill up the second column
|
// Fill up the second column
|
||||||
|
|
||||||
vbox = new St.BoxLayout({vertical: true});
|
vbox = new St.BoxLayout({vertical: true});
|
||||||
hbox.add(vbox);
|
hbox.add(vbox, { expand: true });
|
||||||
|
|
||||||
// Event list
|
// Event list
|
||||||
vbox.add(this._eventList.actor);
|
vbox.add(this._eventList.actor, { expand: true });
|
||||||
|
|
||||||
item = new PopupMenu.PopupMenuItem(_("Open Calendar"));
|
item = new PopupMenu.PopupMenuItem(_("Open Calendar"));
|
||||||
item.connect('activate', Lang.bind(this, this._onOpenCalendarActivate));
|
item.connect('activate', Lang.bind(this, this._onOpenCalendarActivate));
|
||||||
|
Loading…
Reference in New Issue
Block a user