File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
web/skins/classic/views/js Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -759,16 +759,16 @@ function initPage() {
759
759
setInterval ( ( ) => { //Updating GridStack resizeToContent, Scale & Ratio
760
760
if ( changedMonitors . length > 0 ) {
761
761
changedMonitors . slice ( ) . reverse ( ) . forEach ( function ( item , index , object ) {
762
- const img = document . getElementById ( 'liveStream' + item ) ;
762
+ const img = getStream ( item ) ;
763
763
if ( img . offsetHeight > 20 && objGridStack ) { //Required for initial page loading
764
764
setRatioForMonitor ( img , item ) ;
765
- objGridStack . resizeToContent ( document . getElementById ( 'm' + item ) ) ;
765
+ if ( objGridStack ) objGridStack . resizeToContent ( document . getElementById ( 'm' + item ) , true ) ;
766
766
changedMonitors . splice ( object . length - 1 - index , 1 ) ;
767
767
}
768
768
monitorsSetScale ( item ) ;
769
769
} ) ;
770
770
}
771
- } , 100 ) ;
771
+ } , 200 ) ;
772
772
773
773
selectLayout ( ) ;
774
774
monitors_ul . removeClass ( 'hidden-shift' ) ;
You can’t perform that action at this time.
0 commit comments