-
-
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
Window not shown when SetFixedSize is used without Resize #2784
Comments
Not showing may be macOS specific, but similarly there are errors on Linux, as shown:
Overall it seems we missed FixedSize with no Resize call in our window refactor tests... |
I missed this in my original ticket, but on mac there is no error nor any log output. The ShowAndRun() function just "blocks" like it normally would, and returns when you quit the app. So no crash at all. |
Thanks, #2794 should fix it, if you could test that would be helpful as I only have a Linux computer to hand just now. |
I'd like to test it, but could you help we with how i set up my application to use this specific branch of the fyne library? |
Usually a replace directive in your go.mod is easiest if you are testing with your own app. |
It's now on the |
sorry i'm really not familiar with how to do this. |
I think |
This gives:
|
Ah, I see. I was a bit too fast with the copy-paste. You should never use |
That works thanks! header := canvas.NewImageFromResource(resourceHeaderSvg)
header.FillMode = canvas.ImageFillOriginal This problem only occurs with SetFixedSize(true) Do you want me to report this as a new problem or not? |
Thanks for the report @kheyse-oqton, there is a complication with "ImageFillOriginal" that means Minimum size is not known fast enough. I think this probably requires a new issue as it is due to the MinSize increasing after first draw, so a more complicated solution will be required. |
New ticket #2800 |
Describe the bug:
Window not shown when SetFixedSize is used without Resize.
Adding a call to Resize shows the window.
Seems to be a regression since 2.0.x
Discussion on https://gophers.slack.com/archives/CB4QUBXGQ/p1644939596121299
Example code:
Device (please complete the following information):
The text was updated successfully, but these errors were encountered: