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
{{ message }}
Repository navigation
Win32: with_dimensions excludes decoration, with_max_dimensions includes them #196
It looks like, on Win32 at least, with_max_dimensions and with_min_dimensions include the window decorations, but with_dimensions does not. Only including the client area seems like the correct approach here, so this seems like a bug.
After a discussion with @tomaka a few days ago in IRC, it sounds like this behavior just isn't well-defined.
Someone should propose a documentation update to specify the correct behavior here (probably just including client area, and using client units?) and then update the backends to match it.
Activity
BonsaiDen commentedon Jun 5, 2017
Running into the same issue here, below are a two comparison screenshots.
Ubuntu (640x480 as set / expected):
Windows 10 (Too small ):
LPGhatguy commentedon Jun 9, 2017
After a discussion with @tomaka a few days ago in IRC, it sounds like this behavior just isn't well-defined.
Someone should propose a documentation update to specify the correct behavior here (probably just including client area, and using client units?) and then update the backends to match it.
Dooskington commentedon Nov 28, 2017
I am also having the same issue - any updates?
francesca64 commentedon Apr 13, 2018
@Dooskington today is a happy day, for this is now fixed in master.
Merge next back to dev branch (rust-windowing#305)