From 15e040ae0717e54b2bcd9a0a7851d4a34cf86f45 Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Wed, 8 May 2024 18:58:16 +0300 Subject: [PATCH] Fix: Not used $j('#scale').val() (montage.js) Always use "0" --- web/skins/classic/views/js/montage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/skins/classic/views/js/montage.js b/web/skins/classic/views/js/montage.js index 1a179ad8c..3ce0326d9 100644 --- a/web/skins/classic/views/js/montage.js +++ b/web/skins/classic/views/js/montage.js @@ -608,7 +608,7 @@ function addEvents(grid, id) { const curentMonitorId = stringToNumber(node.el.id); //We received the ID of the monitor whose size was changed const curentMonitor = monitors.find((o) => { return parseInt(o["id"]) === curentMonitorId }); - curentMonitor.setScale( $j('#scale').val(), node.el.offsetWidth + 'px', null, false); + curentMonitor.setScale(0, node.el.offsetWidth + 'px', null, false); }); } @@ -680,7 +680,7 @@ function monitorsSetScale(id=null) { } else { var panZoomScale = 1; } - curentMonitor.setScale($j('#scale').val(), el.clientWidth * panZoomScale + 'px', el.clientHeight * panZoomScale + 'px', false); + curentMonitor.setScale(0, el.clientWidth * panZoomScale + 'px', el.clientHeight * panZoomScale + 'px', false); } else { for ( let i = 0, length = monitors.length; i < length; i++ ) { const id = monitors[i].id; @@ -690,7 +690,7 @@ function monitorsSetScale(id=null) { } else { var panZoomScale = 1; } - monitors[i].setScale($j('#scale').val(), parseInt(el.clientWidth * panZoomScale) + 'px', parseInt(el.clientHeight * panZoomScale) + 'px', false); + monitors[i].setScale(0, parseInt(el.clientWidth * panZoomScale) + 'px', parseInt(el.clientHeight * panZoomScale) + 'px', false); } } }