Fix: scaleToFit function

It is required to pass an object in parameters
pull/3849/head
IgorA100 2024-03-04 16:52:04 +03:00 committed by GitHub
parent 66ff90c8c1
commit a18167377e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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);