How do I make separation of a split container truly zero?
Asked Answered
A

4

0

In the inspector>theme overrides>constants>separation of the split container its value is zero, but there is a gap between the children, I want the children to be adjacent to each other without gap between them

godot 3.5

Amaryl answered 3/7, 2023 at 21:16 Comment(0)
K
0

.3

If the Separation value is set to zero, and there is still a gap between the children, then the gap is likely caused by extra padding in the children of the split container. To resolve this, you can try setting the padding values of the children to zero.

Kwarteng answered 3/7, 2023 at 21:16 Comment(0)
A
0

Kwarteng what is padding?

Amaryl answered 4/7, 2023 at 11:33 Comment(0)
A
0

it is a usual gap that appears between the children of the split container. In some other containers, such as vbox, when we set a value of 0 for the separation, the children are on top of each other without gaps between them.

Amaryl answered 4/7, 2023 at 11:54 Comment(0)
I
0

I don't remember for sure but in the past I think I've resolved it with a custom theme, not just for margins and padding but for the separators own width value to be changed. It's been a while tho so perhaps I misrecall. Maybe I was just using theme overrides.

Iconic answered 4/7, 2023 at 12:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.