diff options
author | Ryan Inch <mythologylover75@gmail.com> | 2020-04-25 11:27:54 +0300 |
---|---|---|
committer | Ryan Inch <mythologylover75@gmail.com> | 2020-04-25 11:32:07 +0300 |
commit | d60d0462c5b8a7e541c50769ceee439c15f87672 (patch) | |
tree | 2cfbb12a73323200ff73124ecde06df9e5f428f1 /object_collection_manager/ui.py | |
parent | 52435a23becb5d566356037343934d1aad99a32a (diff) |
Collection Manager: Fix popup sizing. Task: T69577
Adjust popup sizing to account for the width of the QCD field
when present.
Diffstat (limited to 'object_collection_manager/ui.py')
-rw-r--r-- | object_collection_manager/ui.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |