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

WASM tips #117

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

WASM tips #117

wants to merge 1 commit into from

Conversation

ManevilleF
Copy link

  • Dynamic fullscreen for wasm
  • custom index.html
  • disabling context menu in browser

Copy link
Contributor

@jbutterwick jbutterwick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for making this, I've found your tips very useful but when I use the window resizing exactly the way you've displayed here, I get these pointless vertical and horizontal scrollbars on my window. I've resolved that problem by adding some additional CSS to the body in index.html to hide the scrollbars like so:

<body style="margin: 0 !important; padding: 0 !important; overflow-y: hidden; overflow-x: hidden;">

This gives me a nice view of my app that fills up the whole browser window without the scrollbars. Figured I'd show you here in case others have the same experience I did if this PR gets merged

Thanks again for the incredibly useful tips!

<head>
<title>My Bevy App</title>
</head>
<body style="margin: 0 !important; padding: 0 !important;">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<body style="margin: 0 !important; padding: 0 !important;">
<body style="margin: 0 !important; padding: 0 !important; overflow-y: hidden; overflow-x: hidden;">

<head>
<title>My Bevy App</title>
</head>
<body style="margin: 0 !important; padding: 0 !important;">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<body style="margin: 0 !important; padding: 0 !important;">
<body style="margin: 0 !important; padding: 0 !important; overflow-y: hidden; overflow-x: hidden;">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants