Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-01-27 12:10:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-01-27 12:11:37 +0400
commit029a7bbade920385a4852484cc19b138be8a9558 (patch)
tree212487f6f6146f73833dbb03cccc3da830ff2015 /source/blender/editors/interface
parenta71f072f9ccaae043069df1cbf95c169a60e494e (diff)
UI: Fix for icon-only menus too small click-able area
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r--source/blender/editors/interface/interface_layout.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c
index 34c124b293e..d2099334efb 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -1619,10 +1619,14 @@ static void ui_item_menu(uiLayout *layout, const char *name, int icon, uiMenuCre
h = UI_UNIT_Y;
if (layout->root->type == UI_LAYOUT_HEADER) { /* ugly .. */
- if (force_menu)
+ if (force_menu) {
w += UI_UNIT_Y;
- else
- w -= UI_UNIT_Y / 2;
+ }
+ else {
+ if (name[0]) {
+ w -= UI_UNIT_Y / 2;
+ }
+ }
}
if (name[0] && icon)