fix presentation size 0 bug

This commit is contained in:
Ramon Souza 2022-04-05 14:37:52 -03:00
parent 634c87f342
commit a1a8d68b4d

View File

@ -158,6 +158,8 @@ class Presentation extends PureComponent {
intl,
} = this.props;
const { presentationWidth, presentationHeight } = this.state;
const {
numCameras: prevNumCameras,
presentationBounds: prevPresentationBounds,
@ -235,7 +237,8 @@ class Presentation extends PureComponent {
}
}
if (presentationBounds !== prevPresentationBounds) this.onResize();
if ((presentationBounds !== prevPresentationBounds) ||
(!presentationWidth && !presentationHeight)) this.onResize();
}
}