Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
BlackBerry Layout issue.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Suresh Kumar Narayanasamy  
View profile  
 More options Mar 2 2011, 5:58 pm
From: Suresh Kumar Narayanasamy <n.sureshku...@gmail.com>
Date: Wed, 2 Mar 2011 14:58:30 -0800 (PST)
Local: Wed, Mar 2 2011 5:58 pm
Subject: BlackBerry Layout issue.
I have a very simple html page, which just has a div. I want to set
the height of the div to the screen height in BlackBerry.
But unforutnately, even when the screen height is calculated correctly
(480px), the div takes only some portion of that (400px). Any reasons.
I have the code below.
<!DOCTYPE HTML>
<html>
  <head>
  <meta name="viewport"  content="width=device-width, height=device-
height, initial-scale=0.8, 'maximum-scale=0.8, 'minimum-scale=0.8,
user-scalable=no" />
  </head>
  <script type="text/javascript" charset="utf-8" src="javascript/
phonegap.js"></script>
  <script type="text/javascript" charset="utf-8">
        document.addEventListener("deviceready", function() {
            alert('initialized');
    }, true);
        document.addEventListener('DOMContentLoaded', loaded, false);
        function loaded(){
                var pageH = window.innerHeight;
                document.getElementById('outer').style.height = pageH + 'px';
        }
        </script>
  <body>
        <div id="outer" style="background: #green;">
                <h1>Welcome to PhoneGap</h1>
                <h2>Edit assets/www/index.html</h2>
        </div>
</body>
</html>

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin Tyberg  
View profile  
 More options Mar 2 2011, 7:35 pm
From: Justin Tyberg <justin.tyb...@gmail.com>
Date: Wed, 2 Mar 2011 16:35:02 -0800 (PST)
Local: Wed, Mar 2 2011 7:35 pm
Subject: Re: BlackBerry Layout issue.
Try this in onload:

document.body.style.height = screen.height;

I found it on an older WebWorks post:
http://supportforums.blackberry.com/t5/Web-Development/Tips-Quirks-an...

On Mar 2, 5:58 pm, Suresh Kumar Narayanasamy <n.sureshku...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Suresh Kumar Narayanasamy  
View profile  
 More options Mar 3 2011, 10:39 am
From: Suresh Kumar Narayanasamy <n.sureshku...@gmail.com>
Date: Thu, 3 Mar 2011 07:39:39 -0800 (PST)
Local: Thurs, Mar 3 2011 10:39 am
Subject: Re: BlackBerry Layout issue.

Worked Good. Thanks Justin....
On Mar 2, 7:35 pm, Justin Tyberg <justin.tyb...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »