summaryrefslogtreecommitdiff
path: root/www/js/MontageCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/MontageCtrl.js')
-rw-r--r--www/js/MontageCtrl.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js
index 69c837b9..1e0bc5e3 100644
--- a/www/js/MontageCtrl.js
+++ b/www/js/MontageCtrl.js
@@ -222,6 +222,12 @@ function initPackery()
ZMDataModel.zmLog ("Monitors that are active: " + cnt + " while grid has " + positions.length);
+ if (cnt > ZMDataModel.getLogin().maxMontage )
+ {
+ cnt = ZMDataModel.getLogin().maxMontage;
+ ZMDataModel.zmLog ("restricting monitor count to " + cnt + " due to max-montage setting");
+ }
+
if (cnt!= positions.length)
{