UI: align header menus to space them closely

This commit is contained in:
Campbell Barton 2018-07-02 15:47:00 +02:00
parent 4d05dd880a
commit 41a7225794

@ -969,7 +969,8 @@ class Menu(StructRNA, _GenericUI, metaclass=RNAMeta):
# helper function for (optionally) collapsed header menus # helper function for (optionally) collapsed header menus
# only usable within headers # only usable within headers
if context.area.show_menus: if context.area.show_menus:
cls.draw_menus(layout, context) # Align menus to space them closely.
cls.draw_menus(layout.row(align=True), context)
else: else:
layout.menu(cls.__name__, icon='COLLAPSEMENU') layout.menu(cls.__name__, icon='COLLAPSEMENU')