开发者

simplemodal window positioning on ipad

开发者 https://www.devze.com 2023-01-20 07:20 出处:网络
I\'m just finishing some work on a project viewer that presents a nested jQuery Cycle widget within a SimpleModal window. It\'s working very well, except that now I\'m trying to debug a few things for

I'm just finishing some work on a project viewer that presents a nested jQuery Cycle widget within a SimpleModal window. It's working very well, except that now I'm trying to debug a few things for iPad.

Take a look a the graphic below for a better idea of what's happening, but basically SimpleModal seems to have trouble with the way mobile safari returns scrolltop or it's equivalents. I k开发者_高级运维now the SimpleModal 'position' option needs to be updated, I'm just now sure how to best go about it.

simplemodal window positioning on ipad


Use "fixed" option:

$(element).modal({fixed: false}); Proof - https://code.google.com/p/simplemodal/issues/detail?id=80

My code

 $.modal(data, {
                        minWidth: 350,
                        maxWidth: 400,
                        maxHeight: 450,
                        autoResize: false,
                        overlayClose: false,
                        fixed: false,
                        opacity: 80,
                        onShow: runPopup
                    });
0

精彩评论

暂无评论...
验证码 换一张
取 消