Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-05-03 19:59:51 +02:00
parent f79339c2da
commit 9755da6f09
No known key found for this signature in database
GPG key ID: 9760693FDD98A790

View file

@ -156,8 +156,8 @@ export default class CallPreview extends React.Component<IProps, IState> {
}; };
private setTranslation(inTranslationX: number, inTranslationY: number) { private setTranslation(inTranslationX: number, inTranslationY: number) {
const width = this.callViewWrapper.current.clientWidth || PIP_VIEW_WIDTH; const width = this.callViewWrapper.current?.clientWidth || PIP_VIEW_WIDTH;
const height = this.callViewWrapper.current.clientHeight || PIP_VIEW_HEIGHT; const height = this.callViewWrapper.current?.clientHeight || PIP_VIEW_HEIGHT;
let outTranslationX; let outTranslationX;
let outTranslationY; let outTranslationY;