Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4045348
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:24:52+00:00 2026-05-20T13:24:52+00:00

Toying around with the WebKit browser in the new Kindle 3G, I noticed that

  • 0

Toying around with the WebKit browser in the new Kindle 3G, I noticed that window.screen.width and window.screen.height don’t reflect the actual screen dimensions. The physical screen (or rather, paper) dimensions are 800 x 600. I get:

  • 800 x 506 in landscape mode
  • 600 x 706 in portrait mode

But interestingly, both Chrome and Safari (which are also WebKit) running on my desktop report the actual screen resolution.

According to MDC, these properties are not part of any specification, so there’s probably no strict definition of what width/height should report. But, shouldn’t it be expected that they reflect the actual screen dimensions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T13:24:53+00:00Added an answer on May 20, 2026 at 1:24 pm

    Update:

    The issue we see in the emulator with window.screen.width is when we use screens which don’t reflect the actual pixels of the device. So what you see on the screen is 320 and what the device has is 480 or whatever. I don’t understand, though, why the value of screen width would give the emulator size on the screen and not the actual pixels.

    This thing might be the same issue with the devices? If their density is higher at some sizes… for whatever the reason this could translate to some wrong screen width size?

    Anyway, read below for my solution.


    screen.availWidth does not work for me on certain screen sizes on the emulator.

    Only thing is working for me now is:

    window.innerWidth
    window.innerHeight
    

    Which will return the value of the Viewport. In my case I’m running an HTML5 app. This values will not update on zoom, apparently.

    They have some issues with this sizes on Android’s Webkit. You can see the devs from Android talking about it here. Probably fixed in Honeycomb.

    Somebody claims it takes some sizes as if the soft keyboard would be present.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Very new to C++ and Cocos2d-x but I was just toying around with CCArray
I have a scenario that I haven't been able to solve: I'm toying around
I've been toying around, writing a small IRC framework in C that I'm now
When toying around with implementing FRP one thing I've found that is confusing is
I was toying around with some of the linq samples that come with LINQPad.
So I'm trying to play around with WebKit and create my own browser. However,
I've been toying around with a web application that would have real-time file sharing
I'm toying around with the Facebook APIs for a game I'm developing as a
Right now I am toying around with an idea in my head, and have
I've been toying around with switching from ms-access files to SQLite files for my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.