How can I set LineEdit's minimum size to below its default?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jslater89
:warning: Old Version Published before Godot 3 was released.

LineEdit appears to set a minimum size which can’t be changed through the editor or in code, based on the size of the font it’s set to use. I’m looking to use LineEdit to display an integer no larger than three characters long, but it insists on being 6-8 characters long instead. How can I force it to be smaller?

Yeah I’d also would like to know if it’s possible.

avencherus | 2016-11-02 05:37

:bust_in_silhouette: Reply From: jslater89

Figured it out: set the MinimumSpaces property on the LineEdit.

To anyone coming here from google, it is under Theme/Constants.

CatastrophicDInosaur | 2023-03-01 16:54