widget.Entry MinSize() calculation #3167
-
It seems the MinSize() calculation of a widget.Entry does not take into account the text inside it (while this is what is implied by the documentation) Code can be found here: At least it fixes Form entries having an horizontal "scroller" because text width was too high for previous calculation. This also means that if you input a really long placeholder you may end-up with a too large entry (and thus dialog) What do other people think of that ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
The text in an Entry lengthening should not typically expand the UI to fit - so we added a scroller by default. If you want to override this so it will expand to fit the text then set |
Beta Was this translation helpful? Give feedback.
-
I marked the entire conversation as a valid response as it gave me all the pointers I needed. Thanks ! |
Beta Was this translation helpful? Give feedback.
The text in an Entry lengthening should not typically expand the UI to fit - so we added a scroller by default.
Widgets like this with a scroller have a small min size, because the minimum is what is truly required to make the item usable.
If you want to override this so it will expand to fit the text then set
Entry.Wrapping = fyne.TextWrapOff
.