mirror of
https://github.com/rive-app/rive-react.git
synced 2026-03-13 08:22:30 +08:00
Add verticalAlign = top to canvas to prevent canvas growth on resize
This commit is contained in:
committed by
Arthur Vivian
parent
06500e6dcf
commit
f309481a43
@@ -36,7 +36,7 @@ function RiveComponent({
|
||||
style={'className' in rest ? undefined : containerStyle}
|
||||
{...rest}
|
||||
>
|
||||
<canvas ref={setCanvasRef} />
|
||||
<canvas ref={setCanvasRef} style={{ verticalAlign: 'top' }} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user