Merge branch 'master' into blender2.8
authorCampbell Barton <ideasman42@gmail.com>
Wed, 13 Jun 2018 09:11:23 +0000 (11:11 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 13 Jun 2018 09:11:23 +0000 (11:11 +0200)
source/blender/editors/interface/interface_layout.c

index 9888c6d65cc9fdce568cfaf34dc4ff435303be85..5387f133641cee8766f29f8bc798c4dfee03231b 100644 (file)
@@ -1986,11 +1986,11 @@ static uiBut *ui_item_menu(
 
        if (layout->root->type == UI_LAYOUT_HEADER) { /* ugly .. */
                if (force_menu) {
-                       w += UI_UNIT_Y;
+                       w += UI_UNIT_X;
                }
                else {
                        if (name[0]) {
-                               w -= UI_UNIT_Y / 2;
+                               w -= UI_UNIT_X / 2;
                        }
                }
        }