Skip to content

Commit

Permalink
Merge branch 'master' into felix/google-vector-null-map
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer authored May 18, 2023
2 parents f3769da + b106327 commit f23956c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/core/src/lib/deck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,8 @@ export default class Deck {
// @ts-expect-error private assign to read-only property
this.height = newHeight;
this.viewManager?.setProps({width: newWidth, height: newHeight});
// Make sure that any new layer gets initialized with the current viewport
this.layerManager?.activateViewport(this.getViewports()[0]);
this.props.onResize({width: newWidth, height: newHeight});
}
}
Expand Down

0 comments on commit f23956c

Please sign in to comment.