Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter staysmart

    (@staysmart)

    Solved using the following script in header:

    (function() {
    if ("-ms-user-select" in document.documentElement.style &&
    (navigator.userAgent.match(/IEMobile/) ||
    navigator.userAgent.match(/ZuneWP7/) ||
    navigator.userAgent.match(/WPDesktop/))) {
    var msViewportStyle = document.createElement("style");
    msViewportStyle.appendChild(
    document.createTextNode("@-ms-viewport{width:auto!important}")
    );
    document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
    }
    })();

    Is there any other solution? Simpler and more elegant?

Viewing 1 replies (of 1 total)