fix: Fix centering element on init (#2445)
Co-authored-by: Andrés Rivera <andres@MBP.local> Co-authored-by: Lipis <lipiridis@gmail.com> Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
@ -593,6 +593,8 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
||||
scene.elements,
|
||||
{
|
||||
...scene.appState,
|
||||
width: this.state.width,
|
||||
height: this.state.height,
|
||||
offsetTop: this.state.offsetTop,
|
||||
offsetLeft: this.state.offsetLeft,
|
||||
},
|
||||
|
Reference in New Issue
Block a user