Merge branch 'blender-v3.1-release'

This commit is contained in:
Campbell Barton 2022-02-22 11:58:05 +11:00
commit 1804852824
1 changed files with 2 additions and 2 deletions

View File

@ -453,9 +453,9 @@ class IV_OT_icons_show(bpy.types.Operator):
self.auto_focusable = True
num_cols = self.get_num_cols(len(pr.popup_icons.filtered_icons))
self.width = min(
self.width = int(min(
ui_scale() * (num_cols * ICON_SIZE + POPUP_PADDING),
context.window.width - WIN_PADDING)
context.window.width - WIN_PADDING))
return context.window_manager.invoke_props_dialog(
self, width=self.width)