Skip to content

What means MinSize() of Entry? #4805

Closed Answered by gksrb4
gksrb4 asked this question in Q&A
Apr 16, 2024 · 6 comments · 3 replies
Discussion options

You must be logged in to vote

Okay, I set the Scroll parameter to 3 to turn off scrolling.
I want to use widget.ScrollDirection but I can't import '"fyne.io/fyne/v2/internal/widget"' because of internal package.
so I used 3 to set enum.

testE := widget.Entry{
Text:      "test\r\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\n\r\n",
MultiLine: true,
Scroll:    3,
// Wrapping:  fyne.TextWrapWord,
}
s := testE.MinSize()
log.Debug("testE MinSize: %v", s)
testE2 := widget.Entry{
Text:      "test\ntest\ntest\ntest\ntest\ntest\ntest\ntest",
MultiLine: true,
Scroll:    3,
// Wrapping:  fyne.TextWrapWord,
}
s = testE2.MinSize()
log.Debug("testE2 MinSize: %v", s)
test…

Replies: 6 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@gksrb4
Comment options

Comment options

You must be logged in to vote
2 replies
@andydotxyz
Comment options

@gksrb4
Comment options

Answer selected by gksrb4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question A question has been asked
3 participants
Converted from issue

This discussion was converted from issue #4785 on April 24, 2024 09:15.