diff options
author | Michael Scherle | 2016-11-21 06:23:56 +0100 |
---|---|---|
committer | Michael Scherle | 2016-11-21 06:23:56 +0100 |
commit | 7f8bcf833d6113023e7159b0f69a4d60abd4f8ef (patch) | |
tree | ce90e1b973748eaa4af794b205fd79d268258aed /modules-available | |
parent | String splitter for better error catching rate. :) (diff) | |
download | slx-admin-7f8bcf833d6113023e7159b0f69a4d60abd4f8ef.tar.gz slx-admin-7f8bcf833d6113023e7159b0f69a4d60abd4f8ef.tar.xz slx-admin-7f8bcf833d6113023e7159b0f69a4d60abd4f8ef.zip |
fixed wrong scaling of calendar
Diffstat (limited to 'modules-available')
-rwxr-xr-x | modules-available/locationinfo/frontend/doorsign.html | 5 |
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);
}
|