Fix eslint
parent
b647280766
commit
3939bcec22
|
@ -613,12 +613,12 @@ function scaleToFit(baseWidth, baseHeight, scaleEl, bottomEl, container) {
|
||||||
let newHeight = viewPort.height() - (bottomLoc - scaleEl.outerHeight(true));
|
let newHeight = viewPort.height() - (bottomLoc - scaleEl.outerHeight(true));
|
||||||
console.log("newHeight = " + viewPort.height() +" - " + bottomLoc + ' - ' + scaleEl.outerHeight(true)+'='+newHeight);
|
console.log("newHeight = " + viewPort.height() +" - " + bottomLoc + ' - ' + scaleEl.outerHeight(true)+'='+newHeight);
|
||||||
let newWidth = ratio * newHeight;
|
let newWidth = ratio * newHeight;
|
||||||
|
|
||||||
// Let's recalculate everything and reduce the height a little. Necessary if "padding" is specified for "wrapperEventVideo"
|
// Let's recalculate everything and reduce the height a little. Necessary if "padding" is specified for "wrapperEventVideo"
|
||||||
padding = parseInt(container.css("padding-left")) + parseInt(container.css("padding-right"));
|
padding = parseInt(container.css("padding-left")) + parseInt(container.css("padding-right"));
|
||||||
newWidth -= padding;
|
newWidth -= padding;
|
||||||
newHeight = newWidth / ratio ;
|
newHeight = newWidth / ratio;
|
||||||
|
|
||||||
console.log("newWidth = ", newWidth, "container width:", container.innerWidth());
|
console.log("newWidth = ", newWidth, "container width:", container.innerWidth());
|
||||||
|
|
||||||
if (newHeight < 0) {
|
if (newHeight < 0) {
|
||||||
|
|
Loading…
Reference in New Issue