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
How to operate with 100% width? #437
Comments
Please be more explicit… |
I had made the canvas thinking of the handheld, the width had been perfect. But they decided to use a tablet, so the width got smaller. See the image: How to make the signature screen responsive (Width 100%) to any screen size. Thank you. |
(I cannot see your image) |
Have the same issue. |
Talk is cheap. Show us the code. |
Use It's complex but worked. I use import React from 'react'
import { useMeasure } from 'react-use'
export default () => {
const [containerRef, { width, height }] = useMeasure();
return (
<div ref={containerRef} style={{ width: '100%', height: '100%' }}>
<canvas width={width} height={height} />
</div>
)
} |
How to operate with 100% width?
The text was updated successfully, but these errors were encountered: