diff options
author | Ton Roosendaal <ton@blender.org> | 2013-01-24 17:02:00 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2013-01-24 17:02:00 +0400 |
commit | f93d6758b747fb207b9608ef28bc9c07750bd79a (patch) | |
tree | 6e4f18a0dec2a59b66dccdeb6ba83f2ae36c81fe /source/blender/editors | |
parent | 9513c03619db9a83fb2be11d7e43d0c0876de83f (diff) |
New 'X' icon in search buttons sometimes overlapped text, needs extra space.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 1 |
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); |