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

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

Closed
wants to merge 2 commits into from
Closed

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

wants to merge 2 commits into from

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