[Bug-1418] Bug trying to create a tab container with only 1 tab

Using Perspective 8.0.16, I’m trying to create a Tab Container with only a single tab.

In the designer I can delete the default second tab, etc. and it shows up fine.

But when I close the designer and open the project via the browser, a second “phantom” tab is visible.

When I reopen the designer, a second empty tab has been added back in.

I know the tab container isn’t necessary, but it’s a shared gui/design and I’d rather not have to be in an “exception” for it.

Any thoughts?

I have the same issue as well. Any udpate on this?

Designer:
image

Runtime:
image

Due to how the Tab container was implemented, the container expects two or more tabs at all times as part of the default schema. So when you delete the second tab in the Designer, you’re only deleting the visual representation of that tab; it still exists behind-the-scenes, and when the View is closed and then opened the second tab is resurrected.

It’s sort of like what happens when you remove the positional properties of a component - they still exist
and if you add the property back in you’ll see that it retains the value it had when you deleted it.

I’ll speak with Dev to see if that second tab could possibly be removed as a requirement of the schema.