search box width's now scale with DPI setting.

was checking on: [#33294] too small place for material names

this helps in some cases but doesn't resolve issue with very long names.
This commit is contained in:
2012-11-26 13:23:37 +00:00
parent 2d6402c10c
commit 2ffa538f7d
7 changed files with 22 additions and 11 deletions

View File

@@ -2826,6 +2826,7 @@ static uiBut *ui_def_but_rna(uiBlock *block, int type, int retval, const char *s
EnumPropertyItem *item;
int i, totitem, free;
/* TODO, translate after getting the item, saves many lookups */
RNA_property_enum_items_gettexted(block->evil_C, ptr, prop, &item, &totitem, &free);
for (i = 0; i < totitem; i++) {
if (item[i].identifier[0] && item[i].value == (int)max) {