Fix: width of UILayout.prop_enum() buttons
This commit is contained in:
@@ -1274,7 +1274,8 @@ static void ui_item_rna_size(
|
|||||||
if (!w) {
|
if (!w) {
|
||||||
if (type == PROP_ENUM && icon_only) {
|
if (type == PROP_ENUM && icon_only) {
|
||||||
w = ui_text_icon_width(layout, "", ICON_BLANK1, 0);
|
w = ui_text_icon_width(layout, "", ICON_BLANK1, 0);
|
||||||
w += 0.6f * UI_UNIT_X;
|
if (index != RNA_ENUM_VALUE)
|
||||||
|
w += 0.6f * UI_UNIT_X;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
w = ui_text_icon_width(layout, name, icon, 0);
|
w = ui_text_icon_width(layout, name, icon, 0);
|
||||||
|
Reference in New Issue
Block a user