Skip to content

On Web, fix scale factor resize suggestion always overwriting the canvas size#2860

Merged
daxpedda merged 1 commit intorust-windowing:masterfrom
daxpedda:web-optional-scale-resize
Jun 7, 2023
Merged

On Web, fix scale factor resize suggestion always overwriting the canvas size#2860
daxpedda merged 1 commit intorust-windowing:masterfrom
daxpedda:web-optional-scale-resize

Conversation

@daxpedda
Copy link
Copy Markdown
Member

@daxpedda daxpedda commented Jun 7, 2023

This makes it so users can ignore the resize suggestion provided by ScaleFactorChanged by setting it to the old value. Which is important when using CSS to set a specific size, like width: 100%, height: 100% on the canvas, which would be overwritten by Winit.

Related #1491.
Related #1661.

@daxpedda daxpedda added the DS - web Affects the Web backend (WebAssembly/WASM) label Jun 7, 2023
@daxpedda daxpedda merged commit 9797ed8 into rust-windowing:master Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DS - web Affects the Web backend (WebAssembly/WASM)

Development

Successfully merging this pull request may close these issues.

1 participant