diff --git a/development_icon_get.py b/development_icon_get.py
index e8901eca174e4e78ecfebeea618862a0c3f91db9..cf214fa22ac9f6620e540e00020cfc191c838bc7 100644
--- a/development_icon_get.py
+++ b/development_icon_get.py
@@ -469,9 +469,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)