forked from extern/egroupware
Fix calendar views not scrollable while browsing with iOS safari
This commit is contained in:
parent
415a85a648
commit
990b9b5fac
@ -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('<div style="height:100%;overflow:scroll;"></div>');
|
||||
$body.children().wrapAll('<div style="height:100%;overflow:scroll;-webkit-overflow-scrolling:touch;"></div>');
|
||||
}
|
||||
else if ($body.children().length == 1 && !$body.children().css('overflow') === 'scroll')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user