forked from bartvdbraak/blender
UI: align header menus to space them closely
This commit is contained in:
parent
4d05dd880a
commit
41a7225794
@ -969,7 +969,8 @@ class Menu(StructRNA, _GenericUI, metaclass=RNAMeta):
|
||||
# helper function for (optionally) collapsed header menus
|
||||
# only usable within headers
|
||||
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:
|
||||
layout.menu(cls.__name__, icon='COLLAPSEMENU')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user