Godot Version
4.3
Question
so I have a optionbutton right now and i want to know how to make the dropdownpanel bigger so all the items can fit
I don’t have any idea on what to do here
4.3
so I have a optionbutton right now and i want to know how to make the dropdownpanel bigger so all the items can fit
I don’t have any idea on what to do here
try increasing the expand margins? it seems like your panel has a lot of grey space around it that needs margins for the content to fit in the green zone.
the content margins didn’t do anything. and they gray is the outline i made
i hate bumping things but the textures just clips to nothing modifying the expand margins
You need to modify the Content margins
of the StyleBox
or modify the Texture Margins
to account for the border. You can visually modify that by clicking on Edit Region
under the Sub-Region
group. You can mix both but keep in mind that Content Margins
will take precedence over Texture Margins
that gives it a tile effect but doesn’t make the panel bigger
The only way to add a tiling effect to a StyleBoxTexture
is to change the Axis Stretch
values which I did not tell you to do.
Result:
this did exactly what I asked about, thank you!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.