From: Anthony Talarico Date: Thu, 28 Jul 2016 18:24:41 +0000 (-0400) Subject: fixing a margin value for the datepicker popup in mobile view in the offcanvas bookin... X-Git-Tag: v1.0.0^2~241 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=710506663e4b736499fdd8365ce8d699845b82ef;p=WP-Themes%2Fpetoskeyarea.git fixing a margin value for the datepicker popup in mobile view in the offcanvas booking widget --- 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'}); } });