diff options
author | Campbell Barton <ideasman42@gmail.com> | 2022-02-22 03:58:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2022-02-22 03:58:05 +0300 |
commit | 1804852824ef009b7199ac421cf23b61530804cc (patch) | |
tree | b3d49af1ae9d06fd6594b9343f1b3e0d2bd9ccd3 | |
parent | 8a69eca9b18cf88cd7f6404f399e0acbd7a93f3b (diff) | |
parent | bb62f10715a871d7069d2b2c74b2efc97c3c350c (diff) |
Merge branch 'blender-v3.1-release'
-rw-r--r-- | development_icon_get.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/development_icon_get.py b/development_icon_get.py index b4b02668..80277b0a 100644 --- a/development_icon_get.py +++ b/development_icon_get.py @@ -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) |