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

Web: Fix incorrect scale when moving to screen with new DPI #5631

Merged
merged 10 commits into from
Jan 23, 2025

Conversation

emilk
Copy link
Owner

@emilk emilk commented Jan 23, 2025

Tested on

  • Chromium
  • Firefox
  • Safari

On Chromium and Firefox we get one annoying frame with the wrong size, which can mess up the layout of egui apps, but this PR is still a huge improvement, and I don't want to spend more time on this right now.

@emilk emilk added bug Something is broken web Related to running Egui on the web eframe Relates to epi and eframe labels Jan 23, 2025
@emilk emilk force-pushed the emilk/fix-resize-ovserver branch from 2cdc3a7 to 9d7e85f Compare January 23, 2025 09:58
Copy link

Preview available at https://egui-pr-preview.github.io/pr/5631-emilkfix-resize-ovserver
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

@emilk emilk marked this pull request as ready for review January 23, 2025 10:08
@emilk emilk force-pushed the emilk/fix-resize-ovserver branch from db7e7d0 to 12a769e Compare January 23, 2025 10:08
@emilk emilk merged commit 6680e9c into master Jan 23, 2025
46 checks passed
@emilk emilk deleted the emilk/fix-resize-ovserver branch January 23, 2025 11:11
emilk added a commit that referenced this pull request Jan 23, 2025
* Broke in #5631 (for _some_ apps)
emilk added a commit to rerun-io/rerun that referenced this pull request Jan 23, 2025
@juancampa
Copy link
Contributor

Glad to hear you fixed this! I hit it quite often and was about to look into it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken eframe Relates to epi and eframe web Related to running Egui on the web
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Web: scale breaks when moving egui to a monitor with different DPI
2 participants