exit updateDOMRect if width or height is zero
This commit is contained in:
parent
2b4462c941
commit
4426275184
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user