From 990b9b5fac05bdced2a8ba8e095676f3b0272268 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 18 Mar 2015 10:53:13 +0000 Subject: [PATCH] Fix calendar views not scrollable while browsing with iOS safari --- jdots/js/fw_mobile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jdots/js/fw_mobile.js b/jdots/js/fw_mobile.js index 38cb3f2daa..195bd41e86 100644 --- a/jdots/js/fw_mobile.js +++ b/jdots/js/fw_mobile.js @@ -615,10 +615,11 @@ // we need to wrap them all with a div and apply overflow:scroll if (this.getUserAgent() === 'iOS') { + $j(_iframe.parentNode).css({"-webkit-overflow-scrolling": "touch", "overflow-y":"scroll"}); var $body = $j(_iframe.contentWindow.document).find('body'); if ($body.children().length >1) { - $body.children().wrapAll('
'); + $body.children().wrapAll('
'); } else if ($body.children().length == 1 && !$body.children().css('overflow') === 'scroll') {