mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-16 05:41:31 +03:00
Add ?
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
f79339c2da
commit
9755da6f09
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue