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:
Uli Schlachter 2010-10-07 10:15:29 +02:00
parent bb975a2464
commit 5eed35b7e0
1 changed files with 1 additions and 1 deletions

View File

@ -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