Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlay is not working properly on android and Iphone #52

Open
canamo06 opened this issue Mar 8, 2013 · 0 comments
Open

Overlay is not working properly on android and Iphone #52

canamo06 opened this issue Mar 8, 2013 · 0 comments

Comments

@canamo06
Copy link

canamo06 commented Mar 8, 2013

See the bug on the image, this happens when
Y8D_v49KwG6Q-DVxF0LwUFEve80NKvecHCP6y5gErQI copy
the content of the popup is bigger that the screen and the page content

Fix:

    function setOverlayHeight() { 

            if ($(window).height() < $(document).height()) {
                $overlay.css({height: $(document).height() + 'px'});
                 $iframe.css({height: $(document).height() + 'px'}); 
            } else {
                var heightNotContent=$self.closest(".mediaLightBox").height() +$self.closest(".mediaLightBox").height()*0.2; 
                if ($(window).height() > heightNotContent)                  
                    $overlay.css({height: '100%'});
                else
                    $overlay.css({height: heightNotContent});
                if (ie6) {
                    $('html,body').css('height','100%');
                    $iframe.css('height', '100%');
                } // ie6 hack for height: 100%; TODO: handle this in IE7
            }
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant