[Bf-blender-cvs] [41a72257946] blender2.8: UI: align header menus to space them closely

Campbell Barton noreply at git.blender.org
Mon Jul 2 15:47:51 CEST 2018


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')



More information about the Bf-blender-cvs mailing list