自从将 ipad 从 ios7 更新到 ios8 后,我的 phonegap 社交分享插件在 ipad 屏幕上的位置不正确。它只是看起来很窄,而不是应用我在代码中设置的位置/坐标。请对如何解决这个问题有任何想法吗?或者以前有人遇到过这个问题吗?
插件版本:gap:plugin name="nl.x-services.plugins.socialsharing" version="4.3.8"
下面的脚本在我的 html 页面中用于定位共享框。
<script>
document.addEventListener(
'deviceready',
function() {
window.plugins.socialsharing.iPadPopupCoordinates = function() {
return "100,200,300,300";
};
},
false);
</script>
这就是共享按钮上的插件。这很好用,因为共享框确实出现在 ipad 屏幕上。
<a href="#" class="ui-button-action" onclick="window.plugins.socialsharing.share(' ', '')">
非常感谢