Fix #119183: Use valid style for popup text size calculation #119442

Merged
Harley Acheson merged 2 commits from guishe/blender:fix-popup-resize into blender-v4.1-release 2024-03-13 23:02:11 +01:00
1 changed files with 1 additions and 0 deletions

View File

@ -1506,6 +1506,7 @@ static uiBlock *wm_block_dialog_create(bContext *C, ARegion *region, void *user_
UI_block_flag_enable(block, UI_BLOCK_KEEP_OPEN | UI_BLOCK_NUMSELECT);
UI_fontstyle_set(&style->widget);
/* Width based on the text lengths. */
int text_width = std::max(
120 * UI_SCALE_FAC,