frontends (XMLUI): TabsContainer can now be the main container (Primitivus keep the old behaviour and always use VerticalContainer as main container)

This commit is contained in:
Goffi 2019-01-02 18:32:16 +01:00
commit 24c4cc0487

View file

@ -439,7 +439,7 @@ class XMLUIPanel(XMLUIBase):
if node.nodeName == "container":
type_ = node.getAttribute("type")
if _xmlui_parent is self and type_ != "vertical":
if _xmlui_parent is self and type_ not in ("vertical", "tabs"):
# main container is not a VerticalContainer and we want one,
# so we create one to wrap it
_xmlui_parent = self.widget_factory.createVerticalContainer(self)