Replies: 5 comments 5 replies
-
I've no idea why isn't this a thing. Anyway currently to implement it by code? |
Beta Was this translation helpful? Give feedback.
-
I second that this would be a very useful feature, it seems that everything related to tab sizing is done internally and there is no way to really override it. At the very least I wish there was an option to set a minimum width for the tabs. |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Probably doable, will have a look to try to implement it |
Beta Was this translation helpful? Give feedback.
-
If you put this code in a Tab Container it should add space to both sides of your Tabs: https://gist.github.com/TiptoeAndDoomsday/10131d8208fd7847fc5aa159a8544569 |
Beta Was this translation helpful? Give feedback.
-
It would be extremely useful if there were some way of making tabs expand to fill all empty space in a TabBar, in a way similar to a control's "expand" size flag.
Here's an example of what I mean: On the left is a standard TabContainer, while on the right is a hacked-together mockup I made, which is an HBoxContainer full of buttons with their horizontal size flags set to "expand".
This looks much better visually, especially in situations where there's a fixed number of tabs and the amount will never change, but obviously to implement this in an actual game would take a lot of re-implementing TabContainer's functionality. It would be incredibly useful if there were just a property you could set to make this happen - maybe another entry on the
AlignmentMode
enum?Beta Was this translation helpful? Give feedback.
All reactions