mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 17:36:29 +00:00
Limit active type prop width #6943
Example - https://files.catbox.moe/m49wt1.png
This commit is contained in:
@@ -654,7 +654,7 @@ class CreateObjectUI:
|
|||||||
row = box.row(align=True)
|
row = box.row(align=True)
|
||||||
thumbnail: int = AuthoringData.type_thumbnails.get(relating_type_data["id"], 0)
|
thumbnail: int = AuthoringData.type_thumbnails.get(relating_type_data["id"], 0)
|
||||||
row.template_icon(icon_value=thumbnail)
|
row.template_icon(icon_value=thumbnail)
|
||||||
prop_with_search(
|
row_ = prop_with_search(
|
||||||
row,
|
row,
|
||||||
cls.props,
|
cls.props,
|
||||||
"relating_type_id",
|
"relating_type_id",
|
||||||
@@ -662,6 +662,8 @@ class CreateObjectUI:
|
|||||||
button_kwargs={"emboss": False},
|
button_kwargs={"emboss": False},
|
||||||
emboss=True,
|
emboss=True,
|
||||||
)
|
)
|
||||||
|
# Limit width because names can get really long.
|
||||||
|
row_.ui_units_x = 10.0
|
||||||
row.operator(
|
row.operator(
|
||||||
"bim.launch_type_manager",
|
"bim.launch_type_manager",
|
||||||
icon=tool.Blender.TYPE_MANAGER_ICON,
|
icon=tool.Blender.TYPE_MANAGER_ICON,
|
||||||
|
|||||||
Reference in New Issue
Block a user