Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
New Contributor
BTTNext
Posts: 3
Registered: 09-19-2010

Widget loadingScreen backgroundColor gets carried over

When setting a backGround color as part of the loadingScreen on first launch, the background color gets carried over to pages that are do not fill up the entire height of the screen. I want the background to be just white after the loading screen. 

 

How can I get around this issue?

 

Thanks!

Please use plain text.
New Contributor
BTTNext
Posts: 3
Registered: 09-19-2010

Re: Widget loadingScreen backgroundColor gets carried over

[ Edited ]

I still haven't been able to find a solution to this problem.

 

Does anyone have a clue how to resolve it? I'd imagine it's a pretty common problem for developers using a loadingScreen in their Widget application...

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,555
Registered: 10-16-2008
My Carrier: Rogers

Re: Widget loadingScreen backgroundColor gets carried over

The loading screen background color should probably be better labeled as the application background color.

 

The easiest way to get around the issue is in the onload to do something like the following:

 

 

document.body.style.height = screen.height + 'px';

 

 

There are a bunch of useful tips and tricks in the following sticky post:

http://supportforums.blackberry.com/t5/Web-Development/Tips-Quirks-and-Solutions/td-p/470870

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.