diff --git a/src/ext/lib/video-transform/Resizer.ts b/src/ext/lib/video-transform/Resizer.ts index a3c2c8e..60f6603 100644 --- a/src/ext/lib/video-transform/Resizer.ts +++ b/src/ext/lib/video-transform/Resizer.ts @@ -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) {