jQuery jScrollPane issue/conflict with Google maps on Safari

﹥>﹥吖頭↗ 提交于 2019-12-02 09:34:59

问题


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 content. 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.


回答1:


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.



来源:https://stackoverflow.com/questions/6163975/jquery-jscrollpane-issue-conflict-with-google-maps-on-safari

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!