mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Slightly optimise the display of the description popup
This commit is contained in:
@@ -702,9 +702,8 @@ class BIM_OT_show_description(bpy.types.Operator):
|
|||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
layout.label(text=" - " + self.attr_name + " :")
|
|
||||||
wrapper = textwrap.TextWrapper(width=80)
|
wrapper = textwrap.TextWrapper(width=80)
|
||||||
for line in wrapper.wrap(self.description):
|
for line in wrapper.wrap(self.attr_name + " : " + self.description):
|
||||||
layout.label(text=line)
|
layout.label(text=line)
|
||||||
if self.url:
|
if self.url:
|
||||||
url_op = layout.operator("bim.open_webbrowser", icon="URL", text="Online IFC Documentation")
|
url_op = layout.operator("bim.open_webbrowser", icon="URL", text="Online IFC Documentation")
|
||||||
|
|||||||
Reference in New Issue
Block a user