-
-
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 improperly sized if contains image with ImageFillOriginal and setFixedSize is set #2800
Comments
This relates to the MinSize of |
is there a workaround? because this blocks us from upgrading from 2.0 |
In general it is a bad idea to prop windows open using ImageFillOriginal - the results will be very different depending on device (i.e. with a 3* pixel density on iPhone or Retina/HiDPI on PC the window will be 1/3 or 1/2 of the expected size. |
Yes, as an image which is pixel based has no innate size in a vector world the default is basically 1x1. |
I'd like to test it when i have some time, but i haven't yet been able to test my code with an unreleased version of the fyne library. Do you know of instructions on how to do that? Sorry, go is not my main development platform. |
I usually download the zip file for the given branch (https://github.com/andydotxyz/fyne/archive/refs/heads/fix/2819.zip in this case) and then copy the reproduction code into |
Sorry it isn't fixed. My simpler test code looked good, but there's still more to do. |
I think that linked PR (#2846) resolves it. Sorry for the regression! Once this is landed and a couple of smaller items we will get 2.1.4 underway. |
Fix landed for v2.1.4 |
Describe the bug:
Regression where window does not take image size into account if setfixedsize is true.
The regression is blocking us from upgrading to v2.1. Same code worked on v2.0
To Reproduce:
Run the app
Screenshots:
v2.0


v2.1
Example code:
Device (please complete the following information):
The text was updated successfully, but these errors were encountered: