Add verticalAlign = top to canvas to prevent canvas growth on resize

This commit is contained in:
Arthur Vivian
2021-11-08 13:32:33 +00:00
committed by Arthur Vivian
parent 06500e6dcf
commit f309481a43

View File

@@ -36,7 +36,7 @@ function RiveComponent({
style={'className' in rest ? undefined : containerStyle}
{...rest}
>
<canvas ref={setCanvasRef} />
<canvas ref={setCanvasRef} style={{ verticalAlign: 'top' }} />
</div>
);
}