diff options
author | Michael Scherle | 2017-03-08 23:24:25 +0100 |
---|---|---|
committer | Michael Scherle | 2017-03-08 23:24:25 +0100 |
commit | a7d0341f49a9ec432e2e791a429d94156ab38d1b (patch) | |
tree | 0283c07552c6a6f33c159c9c3f12472709e40798 /modules-available | |
parent | frontend: doorsing supports now multible overlays, overlay name has to be sen... (diff) | |
download | slx-admin-a7d0341f49a9ec432e2e791a429d94156ab38d1b.tar.gz slx-admin-a7d0341f49a9ec432e2e791a429d94156ab38d1b.tar.xz slx-admin-a7d0341f49a9ec432e2e791a429d94156ab38d1b.zip |
frontend: fixed vertical mode in doorsign
Diffstat (limited to 'modules-available')
-rwxr-xr-x | modules-available/locationinfo/frontend/doorsign.html | 5 |
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;
}
|