Fix aspect ratio not getting applied correctly
This commit is contained in:
parent
52b94003bf
commit
e7d43c566f
@ -88,9 +88,12 @@ class Resizer {
|
|||||||
this.stretcher = new Stretcher(this.conf);
|
this.stretcher = new Stretcher(this.conf);
|
||||||
this.zoom = new Zoom(this.conf);
|
this.zoom = new Zoom(this.conf);
|
||||||
|
|
||||||
this.videoAlignment.x = this.settings.getDefaultVideoAlignment(window.location.hostname); // this is initial video alignment
|
this.videoAlignment = {
|
||||||
this.destroyed = false;
|
x: this.settings.getDefaultVideoAlignment(window.location.hostname),
|
||||||
|
y: VideoAlignmentType.Center
|
||||||
|
}; // this is initial video alignment
|
||||||
|
|
||||||
|
this.destroyed = false;
|
||||||
|
|
||||||
if (this.settings.active.pan) {
|
if (this.settings.active.pan) {
|
||||||
this.canPan = this.settings.active.miscSettings.mousePan.enabled;
|
this.canPan = this.settings.active.miscSettings.mousePan.enabled;
|
||||||
@ -99,8 +102,6 @@ class Resizer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.userCssClassName = videoData.userCssClassName;
|
this.userCssClassName = videoData.userCssClassName;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
initEventBus() {
|
initEventBus() {
|
||||||
@ -596,8 +597,6 @@ class Resizer {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (this.pan.relativeOffsetX || this.pan.relativeOffsetY) {
|
if (this.pan.relativeOffsetX || this.pan.relativeOffsetY) {
|
||||||
// don't offset when video is smaller than player
|
// don't offset when video is smaller than player
|
||||||
if(wdiffAfterZoom >= 0 || hdiffAfterZoom >= 0) {
|
if(wdiffAfterZoom >= 0 || hdiffAfterZoom >= 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user