Windows Phone screen height in PhoneGap app not 100%

后端 未结 4 1042
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-29 12:48

I\'m developing a Windows Phone app using PhoneGap/Cordova (though, I believe the problem I\'m having makes the fact that it\'s PhoneGap irrelevant). No matter what I seem t

4条回答
  •  盖世英雄少女心
    2020-12-29 13:27

    The overflow is a weird IE10 WebBrowser control thing. If you change the background color of the body you will see that both above and below your div are the background color.

    Here is a simple workaround:

    document.addEventListener("DOMContentLoaded", function () {
        var div = document.querySelector(".navbar_table_container");
        div.style.top = (div.offsetTop + div.offsetHeight + 4) + "px";
    });
    

提交回复
热议问题