How to not have scrollbar appear on themed TextEdit

Godot Version

v4.4.1.stable.official [49a5bc7b6]

Question

I’m using themes to give my app a customized look. I’m running into an issue where when I use the Rubik font and set the font size to 40 for most components, the TextEdit is not correctly sized and has its text not properly centered and a vertical scrollbar appears on the right side. Is there a way to fix this?

I bet there’s a newline at the end of your text. Make sure there’s no newline at the end of “Pad Layout 1” and see if that fixes it.

Failing that, maybe play with the minimum y size of the label, and check how the children of your horizontal container look in the container layout section of the inspector panel.

There’s no newline. While setting a custom minimum vertical size does fix this issue, it seems like more of a work around than a fix.

What have you got for layout->container sizing for the label and the edit box?

You might consider using LineEdit, which is a single line, rather than TextEdit, which is multiline.