fix presentation size 0 bug
This commit is contained in:
parent
634c87f342
commit
a1a8d68b4d
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user