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
When using a macos m1 retina screen, or scaled versions of non-retina screens, the origin, xpos, ypos, width, and height of Image widgets are multiplied by 2. More specifically, the dpi value here that was recently added increases from 1.0 to 2.0.
It seems that this dpi value being force-set to 1.0 fixes the issue, but I have no idea if this is a valid fix.
ninepatch widgets are not affected, so I've added one to the image example code to take some screenshots.
When using a macos m1 retina screen, or scaled versions of non-retina screens, the origin, xpos, ypos, width, and height of
Image
widgets are multiplied by 2. More specifically, thedpi
value here that was recently added increases from1.0
to2.0
.It seems that this dpi value being force-set to
1.0
fixes the issue, but I have no idea if this is a valid fix.ninepatch widgets are not affected, so I've added one to the image example code to take some screenshots.
adjusted image.rs example
The text was updated successfully, but these errors were encountered: