summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/frontend
diff options
context:
space:
mode:
authorMichael Scherle2017-03-08 23:24:25 +0100
committerMichael Scherle2017-03-08 23:24:25 +0100
commita7d0341f49a9ec432e2e791a429d94156ab38d1b (patch)
tree0283c07552c6a6f33c159c9c3f12472709e40798 /modules-available/locationinfo/frontend
parentfrontend: doorsing supports now multible overlays, overlay name has to be sen... (diff)
downloadslx-admin-a7d0341f49a9ec432e2e791a429d94156ab38d1b.tar.gz
slx-admin-a7d0341f49a9ec432e2e791a429d94156ab38d1b.tar.xz
slx-admin-a7d0341f49a9ec432e2e791a429d94156ab38d1b.zip
frontend: fixed vertical mode in doorsign
Diffstat (limited to 'modules-available/locationinfo/frontend')
-rwxr-xr-xmodules-available/locationinfo/frontend/doorsign.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules-available/locationinfo/frontend/doorsign.html b/modules-available/locationinfo/frontend/doorsign.html
index b01f520c..378dbc69 100755
--- a/modules-available/locationinfo/frontend/doorsign.html
+++ b/modules-available/locationinfo/frontend/doorsign.html
@@ -720,9 +720,10 @@ optional:
daysToShow: daysToShow,
height: function ($calendar) {
var height = $(window).height() - document.getElementById('header_' + room.id).clientHeight - 5;
- if (room.mode == 1 && room.config.vertical) {
+ if (room.config.mode == 1 && room.config.vertical) {
height = height * (room.config.scale / 100)
}
+
return height;
},
eventRender: function (calEvent, $event) {
@@ -912,7 +913,6 @@ optional:
clientHeight = clientHeight * (room.config.scale / 100);
clientHeight -= 22;
-
}
@@ -1288,6 +1288,7 @@ optional:
function generateOffsetAndScale(room) {
var clientHeight = ($(window).height() - document.getElementById('header_' + room.id).clientHeight - 5);
+
if (roomsToshow > 1) {
clientHeight -= 5;
}