Skip to content

Commit

Permalink
Fix React component
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Apr 7, 2024
1 parent 80ac105 commit 654b1e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/react/src/deckgl.ts
Expand Up @@ -229,7 +229,7 @@ function DeckGLWithRef<ViewsT extends ViewOrViews = null>(
const currentViewports =
thisRef.deck && thisRef.deck.isInitialized ? thisRef.deck.getViewports() : undefined;

const {ContextProvider, width, height, id, style} = props;
const {ContextProvider, width = '100%', height = '100%', id, style} = props;

const {containerStyle, canvasStyle} = useMemo(
() => extractStyles({width, height, style}),
Expand Down

0 comments on commit 654b1e7

Please sign in to comment.