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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -