Fix T56659: Flow UI: Checkboxes report wrong width, making layouts jump to multi-columns too soon.
Wrong handling of ideal width when splitting buttons and labels appart for checkboxes...
This commit is contained in:
parent
4bfc236d39
commit
cc03218962
Notes:
blender-bot
2023-02-14 07:39:44 +01:00
Referenced by issue #56659, Flow UI: Checkboxes report wrong width, making layouts jump to multi-columns too soon
|
@ -1647,7 +1647,6 @@ void uiItemFullR(uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int index
|
|||
uiLayout *layout_split;
|
||||
#ifdef UI_PROP_SEP_ICON_WIDTH_EXCEPTION
|
||||
if (type == PROP_BOOLEAN && (icon == ICON_NONE) && !icon_only) {
|
||||
w = UI_UNIT_X;
|
||||
layout_split = uiLayoutRow(layout_row ? layout_row : layout, true);
|
||||
}
|
||||
else
|
||||
|
@ -1702,6 +1701,12 @@ void uiItemFullR(uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int index
|
|||
else {
|
||||
name = "";
|
||||
}
|
||||
|
||||
#ifdef UI_PROP_SEP_ICON_WIDTH_EXCEPTION
|
||||
if (type == PROP_BOOLEAN && (icon == ICON_NONE) && !icon_only) {
|
||||
w = UI_UNIT_X;
|
||||
}
|
||||
#endif /* UI_PROP_SEP_ICON_WIDTH_EXCEPTION */
|
||||
}
|
||||
|
||||
#ifdef UI_PROP_DECORATE
|
||||
|
|
Loading…
Reference in New Issue