Fix #102687: Use Proper Style for Label Length Estimation #111908

Merged
Harley Acheson merged 1 commits from Harley/blender:WidgetLabelWidth into main 2023-09-05 00:59:05 +02:00

1 Commits

Author SHA1 Message Date
Harley Acheson bc87055df0 Fix #102687: Use Proper Style for Label Text Length Estimation
When estimating widget sizes, ui_text_icon_width_ex() assumes that all
items are using the "widget" text style, which is incorrect for labels.
This PR uses widget_label style for uiItemL_ and the label portion of
ui_item_with_label.
2023-09-03 16:30:12 -07:00