Commit: 41a722579460ad9d1f1bdd60abb9f366ff25993c
Author: Campbell Barton
Date:   Mon Jul 2 15:47:00 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB41a722579460ad9d1f1bdd60abb9f366ff25993c

UI: align header menus to space them closely

===================================================================

M       release/scripts/modules/bpy_types.py

===================================================================

diff --git a/release/scripts/modules/bpy_types.py 
b/release/scripts/modules/bpy_types.py
index 6cca60bd49e..ee49e8a6630 100644
--- a/release/scripts/modules/bpy_types.py
+++ b/release/scripts/modules/bpy_types.py
@@ -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')

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to