Skip to content

[Merged by Bors] - automatically resize examples to canvas parent#429

Closed
mockersf wants to merge 2 commits intobevyengine:masterfrom
mockersf:fix-wasm-button-shift
Closed

[Merged by Bors] - automatically resize examples to canvas parent#429
mockersf wants to merge 2 commits intobevyengine:masterfrom
mockersf:fix-wasm-button-shift

Conversation

@mockersf
Copy link
Member

@mockersf mockersf commented Aug 2, 2022

Objective

Fixes bevyengine/bevy#4963
Issue is not in Bevy but on CSS of the page to resize the canvas

Solution

Use the new option from Bevy 0.8 to resize canvas to parent

@IceSentry
Copy link
Contributor

IceSentry commented Aug 5, 2022

I think the css should stay there. When loading the example is larger and gets resized once loaded

image

If I revert the css change but keep the bevy fix it works correctly.

@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review Ready for a maintainer to consider for merging label Aug 5, 2022
@alice-i-cecile
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Aug 5, 2022
## Objective

Fixes bevyengine/bevy#4963
Issue is not in Bevy but on CSS of the page to resize the canvas

## Solution

Use the new option from Bevy 0.8 to resize canvas to parent
@bors
Copy link

bors bot commented Aug 5, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title automatically resize examples to canvas parent [Merged by Bors] - automatically resize examples to canvas parent Aug 5, 2022
@bors bors bot closed this Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Examples C-Webdev S-Ready-For-Final-Review Ready for a maintainer to consider for merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Button web example on bevyengine.org clickable area is wrong (Regression?)

3 participants