Fix: scaleToFit function
It is required to pass an object in parameterspull/3849/head
parent
66ff90c8c1
commit
a18167377e
|
@ -112,7 +112,7 @@ function MonitorStream(monitorData) {
|
|||
width = monitor_frame.css('width');
|
||||
height = Math.round(parseInt(this.height) * newscale / 100)+'px';
|
||||
} else {
|
||||
const newSize = scaleToFit(this.width, this.height, $j(img), $j(this.bottomElement));
|
||||
const newSize = scaleToFit(this.width, this.height, $j(img), $j(this.bottomElement), $j('#wrapperMonitor'));
|
||||
width = newSize.width+'px';
|
||||
height = newSize.height+'px';
|
||||
newscale = parseInt(newSize.autoScale);
|
||||
|
|
Loading…
Reference in New Issue