exit updateDOMRect if width or height is zero

This commit is contained in:
zsviczian 2022-08-27 15:54:39 +02:00 committed by GitHub
parent 2b4462c941
commit 4426275184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,