How do I change inherited margins on a tab container?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By lilmart210

I’m trying to have several tabs(colorRects) displayed in the tab container but they inherit a margin from the tab container that offsets them from the left, top, right, and bottom. Respectively, the inherited values are 4,8,-4,-4.

The problem is, I want the colorrects to be flush along with the tab container but I don’t see a place I can override the default behavior. Is there a way around this?

edit : images isn’t showing well.
visual of margin
Google Photos
visual of scene heirarchy
Google Photos

The gray space is the margin I want to get rid of

:bust_in_silhouette: Reply From: Lopy

In the TabContainer’s properties, give it a theme (near the bottom). In that theme, click “Edit Theme” then “Add Class Items” and put in TabContainer. Then your theme should have received extra properties on the right. In TabContainer/Constants set the margins to 0.
You can save your theme to a file to give multiple TabContainers the same theme.