Phonegap社交分享插件 - iPad屏幕定位无法正常工作

时间:2015-02-04 12:06:34

标签: cordova phonegap-plugins phonegap-build socialshare

自从将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(' ', '')">

非常感谢

0 个答案:

没有答案