Skip to content

Commit a0c68cc

Browse files
Write containerlayout element when has gridrc props but no container props
refs alejandroautalan/pygubu-designer#76
1 parent 28f426c commit a0c68cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pygubu/builder/uidefinition.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,12 @@ def widget_to_xmlnode(self, wmeta):
312312

313313
# Container layout properties
314314
container_layout_required = (
315-
layout_required and wmeta.container_properties)
315+
layout_required
316+
and (wmeta.container_properties or wmeta.gridrc_properties)
317+
)
316318
if container_layout_required:
317319
# create layout node
318-
clnode = ET.Element('layout')
320+
clnode = ET.Element('containerlayout')
319321
clnode.set('manager', wmeta.container_manager)
320322

321323
keys = sorted(wmeta.container_properties)

0 commit comments

Comments
 (0)