sub-menu: Fix horizontal item arrow
This commit is contained in:
parent
1c34c56d0b
commit
2e9e7b1851
|
@ -39,7 +39,9 @@ function module:setup_sub_menu_arrow(item,data)
|
|||
if (item._private_data.sub_menu_f or item._private_data.sub_menu_m) and not data.disable_submenu_icon then
|
||||
if not sub_arrow then
|
||||
sub_arrow = wibox.widget.imagebox() --TODO, make global
|
||||
sub_arrow.fit = function(box, context,w, h) return (sub_arrow._image and sub_arrow._image:get_width() or 0),item.height end
|
||||
sub_arrow.fit = function(box, context,w, h)
|
||||
return (sub_arrow._private.image and sub_arrow._private.image:get_width() or 0),item.height
|
||||
end
|
||||
|
||||
if beautiful.menu_submenu_icon then
|
||||
sub_arrow:set_image( beautiful.menu_submenu_icon )
|
||||
|
|
Loading…
Reference in New Issue