You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
func main() {
a := app.New()
w := a.NewWindow("bakalim ne olacak")
w.Resize(fyne.NewSize(300, 300))
label := widget.NewLabel("what will hapen? what will hapen? what will hapen? what will hapen? what will hapen? what will hapen?")
label.Wrapping = fyne.TextWrapBreak
w.SetContent(label)
w.ShowAndRun()
}
Fyne version
v2.4.5
Go compiler version
go version go1.22.2
Operating system and version
Linux 5.15.0-107-generic #117-Ubuntu x86_64 GNU/Linux
Additional Information
No response
The text was updated successfully, but these errors were encountered:
This has come up before - it seems to be specific to Gnome window manager as we ask for the window to be tall because of the initial minimal width, then figure out it can be wider so the height could be smaller.
We set the smaller minimum height but the window does not realise it.
I cannot find an original issue for this so unless anyone else can we will leave this open to track the (possible?) solution.
andydotxyz
changed the title
wrong window size after setting label.Wrapping value.
[Linux:Gnome] wrong window size after setting label.Wrapping value.
May 29, 2024
Checklist
Describe the bug
setting label.Wrapping to fyne.TextWrapBreak results in wrong window size.
How to reproduce
run the sample code
Screenshots
Example code
package main
import (
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/widget"
)
func main() {
a := app.New()
w := a.NewWindow("bakalim ne olacak")
w.Resize(fyne.NewSize(300, 300))
}
Fyne version
v2.4.5
Go compiler version
go version go1.22.2
Operating system and version
Linux 5.15.0-107-generic #117-Ubuntu x86_64 GNU/Linux
Additional Information
No response
The text was updated successfully, but these errors were encountered: