开发者

jQuery jScrollPane issue/conflict with Google maps on Safari

I seem to have come across a strange bug/conflict between jScrollPane and Google Maps (v3) when viewed on Safari.

The issue is that if I have a LI element inside my scroll Pane, that is set to display:block, and also a google map on the page, the LI element does not scroll with the rest of the c开发者_如何学运维ontent. Removing or simply hiding the google map on the page removes the scrolling issue.

I have built a test case here. http://www.incontrolsolutions.com/scroll/stackoverflow.html

This page works correctly in FF, Chrome (Smooth like butter!) and even IE9

But Safari (Including webkit nightly builds up to today) chokes.

Any insight on what can be causing this, or potential workarounds are greatly appreciated.


Good question and great demo. I can replicate in Safari 5.0.5 on Snow Leopard and it is really strange behaviour.

I have no idea what is causing the problem but it seems like you can work around it by adding a z-index: 999; to the CSS rule for #RS_MapListPanel. If I make that change through the web inspector then the page seems to behave correctly.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜