Getting double width on mobile devices?

  • Dear Klaus,

    we've encountered a problem where on mobile devices for some reason the stagewidth and the area.pixelwidth values return double the size they should. We have this code in the embedding html, which is from the website anyway:

    Code
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />

    Not sure if that has anything to do with this issue. I first thought it might be an error of Chrome's device emulator, but then I tested it on an actual smartphone, and got the same results. Both the above krpano variables return 720, while (if testing in Chrome)

    Code
    jQuery(window).width()

    returns 360, which is the correct value. Btw, I have a plugin with align set to bottom, and it's centering as it should. The pano view itself also looks ok.

    Do you know what might be causing this?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!