mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
exit updateDOMRect if width or height is zero
This commit is contained in:
parent
2b4462c941
commit
4426275184
1 changed files with 4 additions and 0 deletions
|
@ -6166,6 +6166,10 @@ class App extends React.Component<AppProps, AppState> {
|
|||
return;
|
||||
}
|
||||
|
||||
if (width === 0 || height === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.setState(
|
||||
{
|
||||
width,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue