05-06-2012 03:59 AM
Hi all,
How to show the top bar in my application as Facebook app?
![]()
Where can I find width of the top bar? Thanks.
regards,
QC
Solved! Go to Solution.
05-07-2012 09:59 AM
I don't fully understand your question. Can you please clarify?
Are you trying to understand how to use CSS to size page elements? If so, I'd recommend making sure to use relative sizing (e.g. % or em units instead of pixels).
Or are you looking for a way to get the value of the current screen dimensions? If so, see this sample:
http://blackberry.github.com/WebWorks-Samples/kitc
05-08-2012 06:53 AM
05-08-2012 09:42 AM
I understand now, thanks for clarifying.
WebWorks apps, like all other apps on the BlackBerry OS, cover the full screen by default. If you wish to include your own task bar, within your app, to display system-level information (battery, carrier, time, etc), you will have to include that logic as part of the app itself (e.g. create a <div>, and use WebWorks APIs or custom JavaScript extensions to retrieve the data for these properties).