mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-04 04:59:32 +01:00
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
|
// we need to wrap them all with a div and apply overflow:scroll
|
||||||
if (this.getUserAgent() === 'iOS')
|
if (this.getUserAgent() === 'iOS')
|
||||||
{
|
{
|
||||||
|
$j(_iframe.parentNode).css({"-webkit-overflow-scrolling": "touch", "overflow-y":"scroll"});
|
||||||
var $body = $j(_iframe.contentWindow.document).find('body');
|
var $body = $j(_iframe.contentWindow.document).find('body');
|
||||||
if ($body.children().length >1)
|
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')
|
else if ($body.children().length == 1 && !$body.children().css('overflow') === 'scroll')
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user