1. Download our Official Android App: Forums for Android!

Root Web: window.innerWidth returns wrong value

Discussion in 'Android Devices' started by orenise, Nov 14, 2010.

  1. orenise

    orenise Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Nov 14, 2010

    Nov 14, 2010
    2
    0
    5
    Hi,

    I am using the Android default web browser, and I am developing in JavaScript - I have trouble getting the real visual width and height when I zoom in or out on a web page.

    It seems that I am getting the wrong value out of window.innerWidth, when I am zooming in/out.

    What I am trying to do is - showing an element on a visual fixed place, even when I am zooming and scrolling the page.

    Does anyone have a solution or an idea how I can achieve this?
     

    Advertisement

  2. Talderon

    Talderon Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,038
    Joined:
    Feb 21, 2010

    Feb 21, 2010
    1,038
    247
    163
    Microsoft Corp. - Sr. Systems Engineer
    Seattle, WA
    I think this belongs in the Android Development section.
     
Tags:

Share This Page

Loading...