-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
base: main
Are you sure you want to change the base?
WASM tips #117
Conversation
There was a problem hiding this 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;"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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;"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<body style="margin: 0 !important; padding: 0 !important;"> | |
<body style="margin: 0 !important; padding: 0 !important; overflow-y: hidden; overflow-x: hidden;"> |
index.html