-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Entry's Wrapping Option not work in version 2.4.0 #4212
Comments
I'm not sure what you're reporting - the entries do not appear to be wrapping. |
Also please don’t share parts of an entire project for the example code. The text states that you should share a minimal running example. |
ok ,let me reedit it, thanks |
if adjust code, set entry Scroll attr to 3 , it works well! package main
import (
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/layout"
"fyne.io/fyne/v2/widget"
)
func main() {
myApp := app.New()
myWindow := myApp.NewWindow("entry wrapping bug")
pwdLabel := widget.NewLabel("passwd")
passwd := widget.NewEntry()
passwd.Scroll = 3
passwd.SetPlaceHolder("this password input entry")
passwd.Wrapping = fyne.TextWrapOff
confirmLabel := widget.NewLabel("confirm")
confirm := widget.NewEntry()
confirm.Scroll = 3
confirm.SetPlaceHolder("this confirm input entry")
confirm.Wrapping = fyne.TextWrapOff
grid := container.New(layout.NewFormLayout(), pwdLabel, passwd, confirmLabel, confirm)
myWindow.SetContent(grid)
myWindow.ShowAndRun()
} but the widget |
Set it to |
I added a note to https://developer.fyne.io/api/v2.4/upgrading, hopefully that helps others that don't see where the constants are. They were used in |
Checklist
Describe the bug
in version v2.3.5 , it works well, it shows like below:
but in v2.4.0 it not work, it shows like below:
How to reproduce
run last code
Screenshots
No response
Example code
Fyne version
2.4.0
Go compiler version
1.21.0
Operating system and version
Linux home-ws 6.1.49-1-MANJARO #1 SMP PREEMPT_DYNAMIC Sun Aug 27 23:08:04 UTC 2023 x86_64 GNU/Linux
Additional Information
hope this project better and better!
The text was updated successfully, but these errors were encountered: