Skip to content
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

[Linux:Gnome] wrong window size after setting label.Wrapping value. #4888

Open
2 tasks done
progfargo opened this issue May 28, 2024 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working OS:Linux Tickets affecting only Linux

Comments

@progfargo
Copy link

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

setting label.Wrapping to fyne.TextWrapBreak results in wrong window size.

How to reproduce

run the sample code

Screenshots

Screenshot from 2024-05-28 22-03-16

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))

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

@progfargo progfargo added the unverified A bug that has been reported but not verified label May 28, 2024
@dweymouth dweymouth added bug Something isn't working and removed unverified A bug that has been reported but not verified labels May 28, 2024
@andydotxyz
Copy link
Member

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 andydotxyz added the OS:Linux Tickets affecting only Linux label May 29, 2024
@andydotxyz 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working OS:Linux Tickets affecting only Linux
Projects
None yet
Development

No branches or pull requests

3 participants