gabdube / native-windows-gui

A light windows GUI toolkit for rust
https://gabdube.github.io/native-windows-gui/
MIT License
1.93k stars 125 forks source link

Flex layout doesn't size properly on HiDPI scaling since `1.0.13` #265

Open Systemcluster opened 1 year ago

Systemcluster commented 1 year ago

HiDPI handling of the flex layout has regressed between versions 1.0.12 and 1.0.13. It doesn't fill the full window anymore, leaving empty space depending on the scaling of the primary screen.

This is a comparison between the same app (wordstat) built with 1.0.12 and 1.0.13: image The screen scaling of the primary screen was set to 125% in both cases. The empty space stays consistent during runtime, even when moving the app between differently scaled screens.

Systemcluster commented 1 year ago

I assume this is related to the changes in #189.