mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
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:
parent
23f21434ff
commit
fb582b45db
3 changed files with 51 additions and 0 deletions
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue