jquery fancybox firefox dimensions issue -


i using jquery fancybox show overlay video on website. following jquery code works fine in chrome in firefox, video diminished , dimensions of container holding video diminished. following jquery code

$('.fancybox-media').fancybox({     'type': 'iframe',     'width': 800,     'height': 580,     'autodimensions':   false,     helpers     : {          media: true     } }); 

below images chrome , firefox

chrome image

firefox image

any ins aspect appreciated.

if using type : "iframe" may not need use media helpers (which moves content inside iframe).

also, if want fancybox keep fixed dimensions, need add fittoview: false, otherwise fancybox resized fit in view port smaller screens.

additionally, may need disable iframe preload avoid known issues when content not loaded (browsers may process size calculation differently)

so code should trick in firefox, chrome , in ie7+ :

$('.fancybox-media').fancybox({     type: 'iframe',     width: 800,     height: 580,     // add     fittoview: false,     iframe : {       preload : false     } }); 

Comments

Popular posts from this blog

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

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -