开发者

simplemodal window positioning on ipad

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜