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
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2013-01-24 17:02:00 +0400
committerTon Roosendaal <ton@blender.org>2013-01-24 17:02:00 +0400
commitf93d6758b747fb207b9608ef28bc9c07750bd79a (patch)
tree6e4f18a0dec2a59b66dccdeb6ba83f2ae36c81fe /source
parent9513c03619db9a83fb2be11d7e43d0c0876de83f (diff)
New 'X' icon in search buttons sometimes overlapped text, needs extra space.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/interface/interface_layout.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c
index e87c0ee1c9b..10375824518 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -1463,6 +1463,7 @@ void uiItemPointerR(uiLayout *layout, struct PointerRNA *ptr, const char *propna
block = uiLayoutGetBlock(layout);
ui_item_rna_size(layout, name, icon, ptr, prop, 0, 0, &w, &h);
+ w += UI_UNIT_X; /* X icon needs more space */
but = ui_item_with_label(layout, block, name, icon, ptr, prop, 0, 0, 0, w, h, 0);
ui_but_add_search(but, ptr, prop, searchptr, searchprop);