Hides video wrapper when avtar is shown, and make it visible when we hide the avtar.

This commit is contained in:
damencho 2016-01-14 14:11:01 -06:00
parent 765f07109a
commit 3cd549a758
1 changed files with 3 additions and 0 deletions

View File

@ -239,6 +239,9 @@ class VideoContainer extends LargeContainer {
}
showAvatar (show) {
// if we are showing the avatar, this means there is no video on large
// so let's hide its video wrapper
show ? this.hide() : this.show();
this.$avatar.css("visibility", show ? "visible" : "hidden");
}