Fix aspect ratio not getting applied correctly

This commit is contained in:
Tamius Han 2021-10-27 20:10:55 +02:00
parent 52b94003bf
commit e7d43c566f

View File

@ -88,9 +88,12 @@ class Resizer {
this.stretcher = new Stretcher(this.conf);
this.zoom = new Zoom(this.conf);
this.videoAlignment.x = this.settings.getDefaultVideoAlignment(window.location.hostname); // this is initial video alignment
this.destroyed = false;
this.videoAlignment = {
x: this.settings.getDefaultVideoAlignment(window.location.hostname),
y: VideoAlignmentType.Center
}; // this is initial video alignment
this.destroyed = false;
if (this.settings.active.pan) {
this.canPan = this.settings.active.miscSettings.mousePan.enabled;
@ -99,8 +102,6 @@ class Resizer {
}
this.userCssClassName = videoData.userCssClassName;
}
initEventBus() {
@ -596,8 +597,6 @@ class Resizer {
};
if (this.pan.relativeOffsetX || this.pan.relativeOffsetY) {
// don't offset when video is smaller than player
if(wdiffAfterZoom >= 0 || hdiffAfterZoom >= 0) {