From 1e1f8b636dfa37acd266c768fd7ae456440d64c7 Mon Sep 17 00:00:00 2001 From: Ryan Inch Date: Sat, 25 Apr 2020 04:27:54 -0400 Subject: Collection Manager: Fix popup sizing. Task: T69577 Adjust popup sizing to account for the width of the QCD field when present. --- object_collection_manager/__init__.py | 2 +- object_collection_manager/ui.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/object_collection_manager/__init__.py b/object_collection_manager/__init__.py index f5ff542e..91063cc0 100644 --- a/object_collection_manager/__init__.py +++ b/object_collection_manager/__init__.py @@ -22,7 +22,7 @@ bl_info = { "name": "Collection Manager", "description": "Manage collections and their objects", "author": "Ryan Inch", - "version": (2, 7, 15), + "version": (2, 7, 16), "blender": (2, 80, 0), "location": "View3D - Object Mode (Shortcut - M)", "warning": '', # used for warning icon and text in addons panel diff --git a/object_collection_manager/ui.py b/object_collection_manager/ui.py index 46d27e77..9fe483a7 100644 --- a/object_collection_manager/ui.py +++ b/object_collection_manager/ui.py @@ -380,11 +380,15 @@ class CollectionManager(Operator): min_width = 456 row_indent_width = 15 width_step = 21 + qcd_width = 30 scrollbar_width = 21 lvl = get_max_lvl() width = min_width + row_indent_width + (width_step * lvl) + if bpy.context.preferences.addons[__package__].preferences.enable_qcd: + width += qcd_width + if len(layer_collections) > 14: width += scrollbar_width -- cgit v1.2.3