SimpleModal bug when positioning HTML5 video

Posted by digm on Stack Overflow See other posts from Stack Overflow or by digm
Published on 2010-05-24T04:38:39Z Indexed on 2010/05/24 4:40 UTC
Read the original article Hit count: 354

Filed under:
|
|
|

I am trying to use simple modal to display a modal window containing a video. I'm using the HTML5 "video" tag to do this. Using JQuery and SimpleModal, I can get it working in Chrome and Firefox, but for some reason Safari fails to maintain the centered positioning of the modal dialog for the video.

In other words, when you scroll up and down in the windows, the modal window stays in its place, but the video scrolls up and down with the rest of the content outside the window. I've put together a 29 line piece of HTML code that you can cut and paste to test.

https://pastee.org/z5sw

Anyone know what I can do to fix this? I've been trying for a few hours now and no combination of JQuery, SimpleModal, or CSS changes can seem to fix this. I'd appreciate any suggestions.

Thanks in advance!

© Stack Overflow or respective owner

SimpleModal bug when positioning HTML5 video

Posted by Damon Morda on Stack Overflow See other posts from Stack Overflow or by Damon Morda
Published on 2010-05-24T04:18:03Z Indexed on 2010/05/24 4:20 UTC
Read the original article Hit count: 354

Filed under:
|
|

I recently

Simple Modal Test

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="jquery.simplemodal-1.3.5.min.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(function ($) {
    $('.simple-clicker').click(function (e) {  
        $("#simple-container").modal();
    });
});
</script>

View preview

Header

Description of video

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html5