From 710506663e4b736499fdd8365ce8d699845b82ef Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 28 Jul 2016 14:24:41 -0400 Subject: [PATCH] fixing a margin value for the datepicker popup in mobile view in the offcanvas booking widget --- js/app.js | 2 +- js/custom/pageSetup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index 09d439f..dfd6d90 100644 --- a/js/app.js +++ b/js/app.js @@ -82,7 +82,7 @@ $(document).ready(function () { $(off_canvas_departure).datepicker({ beforeShow: function(input, inst) { - inst.dpDiv.css({marginTop: -input.offsetHeight + 'px', marginLeft: '-20px'}); + inst.dpDiv.css({marginTop: '175px', marginLeft: '-20px'}); } }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index ab93332..0067076 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -73,7 +73,7 @@ $(document).ready(function () { $(off_canvas_departure).datepicker({ beforeShow: function(input, inst) { - inst.dpDiv.css({marginTop: -input.offsetHeight + 'px', marginLeft: '-20px'}); + inst.dpDiv.css({marginTop: '175px', marginLeft: '-20px'}); } }); -- 2.17.1