mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-02 15:17:26 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (width === 0 || height === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.setState(
|
this.setState(
|
||||||
{
|
{
|
||||||
width,
|
width,
|
||||||
|
Reference in New Issue
Block a user