Skip to content

Commit a6dbc83

Browse files
authored
fix(📐): fix layout bug in Canvas (#230)
1 parent 5ebafeb commit a6dbc83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/webgpu/src/Canvas.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export const Canvas = forwardRef<
137137
return (
138138
<View collapsable={false} ref={viewRef} onLayout={onLayout} {...props}>
139139
<WebGPUNativeView
140-
style={{ flex: 1 }}
140+
style={size}
141141
contextId={contextId}
142142
transparent={!!transparent}
143143
/>

0 commit comments

Comments
 (0)