awful.menu: Make sure the arrow is always visible
By setting the textbox in an align layout's middle, the submenu icon will always get the space it needs and the textbox will get the rest. Previously, the textbox took as much as it wanted and the image got the rest. This looked ugly. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
bb975a2464
commit
5eed35b7e0
|
@ -267,7 +267,7 @@ local function add_item(data, num, item_info)
|
||||||
left:add(margin)
|
left:add(margin)
|
||||||
|
|
||||||
local layout = wibox.layout.align.horizontal()
|
local layout = wibox.layout.align.horizontal()
|
||||||
layout:set_left(left)
|
layout:set_middle(left)
|
||||||
if submenu then
|
if submenu then
|
||||||
layout:set_right(submenu)
|
layout:set_right(submenu)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue