summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/frontend/doorsign.html
diff options
context:
space:
mode:
authorMichael Scherle2016-11-21 06:23:56 +0100
committerMichael Scherle2016-11-21 06:23:56 +0100
commit7f8bcf833d6113023e7159b0f69a4d60abd4f8ef (patch)
treece90e1b973748eaa4af794b205fd79d268258aed /modules-available/locationinfo/frontend/doorsign.html
parentString splitter for better error catching rate. :) (diff)
downloadslx-admin-7f8bcf833d6113023e7159b0f69a4d60abd4f8ef.tar.gz
slx-admin-7f8bcf833d6113023e7159b0f69a4d60abd4f8ef.tar.xz
slx-admin-7f8bcf833d6113023e7159b0f69a4d60abd4f8ef.zip
fixed wrong scaling of calendar
Diffstat (limited to 'modules-available/locationinfo/frontend/doorsign.html')
-rwxr-xr-xmodules-available/locationinfo/frontend/doorsign.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules-available/locationinfo/frontend/doorsign.html b/modules-available/locationinfo/frontend/doorsign.html
index 83c7f287..87b92f36 100755
--- a/modules-available/locationinfo/frontend/doorsign.html
+++ b/modules-available/locationinfo/frontend/doorsign.html
@@ -284,7 +284,7 @@ optional:
timeslotHeight: 20,
daysToShow:daysToShow,
height: function ($calendar) {
- return $(window).height() - $("h1").outerHeight() - 60;
+ return $(window).height()- document.getElementById('header').clientHeight-5;
},
eventRender: function (calEvent, $event) {
if (calEvent.end.getTime() < new Date().getTime()) {
@@ -393,10 +393,9 @@ optional:
if(openTimes==null){
return;
}
- var clientHeight = document.getElementById('calendar').clientHeight - document.getElementsByClassName("wc-time-column-header")[0].clientHeight - 5;
+ var clientHeight = $(window).height()- document.getElementById('header').clientHeight- document.getElementsByClassName("wc-time-column-header")[0].clientHeight-10;
var height = clientHeight / (openTimes * $('#calendar').weekCalendar("option", "timeslotsPerHour"));
-
$('#calendar').weekCalendar("option", "timeslotHeight", height);
$('#calendar').weekCalendar("updateFreeBusy", openingTimesCalendar);
}