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
ReactP5Wrapper has additional pixels in height #267
Comments
I can't reproduce this locally. The only thing I can think of is that the viewport is somehow not maintaining the aspect ratio for some reason. Can you show me the css-box-model for the canvas, canvas wrapper div and your own div? |
Closing due to inactivity. |
Reference for the display: flex workaround P5-wrapper/react#267
I also ran into the same issue.
I also found a workaround - setting Anyways, I'm not actually sure if this is a library issue or something else that's wrong, but I just thought I'll mention that I also faced this, and also mention the ps. Thanks for the great library, it's a pleasure to use this! |
Expected Behavior
App.tsx
sketch.tsx
App.css
From my 500x500 canvas (+2px border), I thought ReactP5Wrapper component would result in same size.
Actual Behavior
Instead, it has additional 6 pixels in height which is weird.
The canvas element is 500x500.
Specifications
The text was updated successfully, but these errors were encountered: