mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-08-31 06:07:06 +02:00
exit updateDOMRect if width or height is zero
This commit is contained in:
@@ -6166,6 +6166,10 @@ class App extends React.Component<AppProps, AppState> {
|
||||
return;
|
||||
}
|
||||
|
||||
if (width === 0 || height === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.setState(
|
||||
{
|
||||
width,
|
||||
|
Reference in New Issue
Block a user