summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}