jquery - Fancybox problem on iPhone -


fancy box seems have problems working on iphone , ipad.

go here http://fancybox.net/blog , click "5. display login form try now" on page in iphone or ipad. form not center , when try enter details box moves page , makes unusable.

any fixes?

thanks, c

fancybox attempts auto resize , center everytime browser window resized, , event gets triggered lot on ipads , iphones. fancy box 1.3.4, code controls line 608:

$(window).bind("resize.fb", $fancybox.resize); 

to fix issue, modified part of fancybox js, , added option called "resizeonwindowresize", can set false ipad , iphone users, or disable together.

if(currentopts.resizeonwindowresize) {    $(window).bind("resize.fb", $fancybox.resize);     } 

you must add default value option in $.fn.fancybox.defaults hash map.

then, when calling fancybox can utilize new option:

$('#fancybox_link').fancybox(${'scrolling': 'no',                               width: 'auto',                               height: 'auto',                               centeronscroll: false,                               resizeonwindowresize : false}); 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -