mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 06:00:51 +00:00
Supersede 3x3 box alignment with more familiar horizontal / vertical UI
* Fix #7712 - global alignment controls now affects all literals * Fix #7760 - goodbye 3x3 box alignment Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -666,10 +666,13 @@ class TestImportTextAttributes(NewFile):
|
||||
|
||||
literal_props = props.literals[0]
|
||||
assert literal_props.ifc_definition_id == item.id()
|
||||
assert literal_props.box_alignment[:] == tuple([False] * 6 + [True] + [False] * 2)
|
||||
assert literal_props.attributes["Literal"].string_value == "Literal"
|
||||
assert literal_props.attributes["Path"].enum_value == "RIGHT"
|
||||
assert literal_props.attributes["BoxAlignment"].string_value == "bottom-left"
|
||||
assert literal_props.align_vertical == "bottom"
|
||||
assert literal_props.align_horizontal == "left"
|
||||
assert props.align_vertical == "bottom"
|
||||
assert props.align_horizontal == "left"
|
||||
|
||||
|
||||
class TestReplaceTextLiteralVariables(NewFile):
|
||||
|
||||
Reference in New Issue
Block a user