javascript - iOS 6: Safari overflow: hidden on containing div not working when modal open -
i can't seem use overflow: hidden
trick on body of website in order lock background content when modal open.
i'm applying current styles onto body:
$('body').css({'overflow':'auto', 'position':'static'});
and being applied, works fine in android, background content locks, in ios devices, doesn't work , content background content still scrollable. idea cause this?
this meta viewport tag using:
<meta name="viewport" content="width=device-width, maximum-scale=1">
ios6 webview requires overflow hidden on both html
, body
element work correctly. if wants add webkit bug tracker i'd obliged :).
either or question here should marked duplicate.
Comments
Post a Comment