Skip to content
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

Fix invalid size when resizing #3043

Merged
merged 1 commit into from
Aug 24, 2023
Merged

Fix invalid size when resizing #3043

merged 1 commit into from
Aug 24, 2023

Conversation

madsmtm
Copy link
Member

@madsmtm madsmtm commented Aug 24, 2023

We were invalidly using visibleRect where we should have been using frame; the former is used if your view is in e.g. a scroll view, and you want to save resources by only rendering the visible part of the view.

This is confusing, since visibleRect is put under the drawing collection in the documentation, so I've banned it from our codebase using clippy.toml to avoid this issue in the future (though that will only take effect after #2982).

Fixes #2876

  • Tested on all platforms changed
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users

@madsmtm madsmtm force-pushed the macos-visible-rect-frame branch from 0540f8b to 31cc3ce Compare August 24, 2023 20:12
@madsmtm madsmtm merged commit 68ef9f7 into master Aug 24, 2023
@madsmtm madsmtm deleted the macos-visible-rect-frame branch August 24, 2023 20:52
madsmtm added a commit that referenced this pull request Sep 27, 2023
oneElectron added a commit to oneElectron/winit that referenced this pull request Oct 13, 2023
kchibisov pushed a commit to kchibisov/winit that referenced this pull request Oct 17, 2023
kchibisov pushed a commit that referenced this pull request Oct 21, 2023
rib pushed a commit to EmbarkStudios/winit that referenced this pull request Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Wrong size when resizing window on MacOS Sonoma (Beta)
2 participants