fix(large-video): center dominant speaker avatar using css
The vertical alignment was being set with javascript. Recent changes might make the setting of alignment exit early due to height 0 video. As position can be set declaratively with css, use css to set position.
This commit is contained in:
parent
8bd0da886e
commit
70f14be50f
|
@ -489,6 +489,8 @@
|
|||
height: 300px;
|
||||
margin: auto;
|
||||
position: relative;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
#mixedstream {
|
||||
|
|
|
@ -454,11 +454,6 @@ export class VideoContainer extends LargeContainer {
|
|||
const { horizontalIndent, verticalIndent }
|
||||
= this.getVideoPosition(width, height, containerWidth, containerHeight);
|
||||
|
||||
// update avatar position
|
||||
const top = (containerHeight / 2) - (this.avatarHeight / 4 * 3);
|
||||
|
||||
this.$avatar.css('top', top);
|
||||
|
||||
this.$wrapper.animate({
|
||||
width,
|
||||
height,
|
||||
|
|
Loading…
Reference in New Issue