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 7639661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:28:31+00:00 2026-05-31T08:28:31+00:00

I am building an phonegap app using html5 and css. I have a iBall

  • 0

I am building an phonegap app using html5 and css. I have a iBall slide android tablet with screen resolution 800*480.

But when i open the page and check its width using java script it shows different values for all orientation.
I am using this as meta value for viewport:

<meta name="viewport" content="height=device-height,width=device-width,initial-scale=1.0,maximum-scale=1.0" >

Plus the most confusing part is that when the app is started for the first time after installation, it shows different screen width and height for same orientation when the app is started second or third time.

There are my values:
1st time in landscape mode:
width:640
height:359

1st time in portrait mode:
width:384
height:615

after 1st time in landscape mode:
width:800
height:449

after 1st time in portrait mode:
width:800
height:1281

How am i supposed to target all these screen sizes?

  • 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-31T08:28:33+00:00Added an answer on May 31, 2026 at 8:28 am

    Do you used api.jquery.com/width and api.jquery.com/height ?

    Try to put the alert like this

    $(window).load(function() { 
       alert($(window).height()); 
       alert($(window).width()); 
    });
    

    then try to put this

    $(window).resize(function() { 
       alert($(window).height()); 
       alert($(window).width()); 
    });
    

    and then tell me what’s happens if you rotate your device.

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

Sidebar

Related Questions

I am building a Android HTML5 App using phonegap - Is it possible to
Helo. I am building an application for kids using Phonegap. On Android I have
I'm building an Android with PhoneGap 1.4 app in Mac OSX 10.7.3 using Eclipse.
I'm building an iOS app with PhoneGap. I'm using translate3d CSS animations to create
Currently I am building an app using phonegap for the Android and iOS systems.
I am building a small app using PhoneGap HTML/CSS. Now my problem is that
I am building a mobile app using jquery mobile and phonegap for both android
We are building a PhoneGap app (both for iOS and Android) that has a
i am building a phonegap(v1.3) android(for 3.1 sdk) app. i load the index.html page
I'm building a mobile app using HTML, CSS, Javascript and jQuery. Is there a

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.