Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
Posts: 17
Registered: ‎01-02-2013
My Device: BB 10 Simulator
My Carrier: ATT

BB10 jQuery Mobile Theme renders very large UI in Simulator

[ Edited ]

Compared to other native apps in the simulator, my BB 10 jQuery Mobile app renders a very large UI.

 

My App:

 

 

Native BB 10 App:

 

 

Also, renders large in browser i.e. Safari, Chrome. I'm using the BB10 CSS and JS files from the Github repo and have not altered them. 
 
I've tried looking for a solution online but have not found one. 
 
Any one else have this issue? 
Retired
Posts: 245
Registered: ‎09-21-2012
My Device: Q10
My Carrier: Virgin

Re: BB10 jQuery Mobile Theme renders very large UI in Simulator

It looks like your scaling is off. Have you set any scaling in your base HTML document?

 

 

@erikjohnzon
erjohnson@blackberry.com
Highlighted
Contributor
Posts: 17
Registered: ‎01-02-2013
My Device: BB 10 Simulator
My Carrier: ATT

Re: BB10 jQuery Mobile Theme renders very large UI in Simulator

Do you mean in the meta tag for the viewport? I removed it according to the advice from another advisor on Github.

 

Didn't solve the issue. 

 

This jQuery Mobile app is an HTML5 Web App which I'm porting to BB 10. I didn't have any rendering issues before. Only when I switched out the BB10 JS and CSS. 

 

Also, the BB10 JQM Theme Kitchen Sink has the same problem when I launch in the browser. I haven't tried to compile it to the simulator, but the UI is very large there as well and that is where I getting the BlackBerry-JQM-all.css and BlackBerry-JQM-all.js.

 

 

 

 

Retired
Posts: 245
Registered: ‎09-21-2012
My Device: Q10
My Carrier: Virgin

Re: BB10 jQuery Mobile Theme renders very large UI in Simulator

The easiest way for me to debug is for you to send me a bar -d file OR a zip file. I can try it out and see if I can replicate the behaviour in Safari and Chrome. My email is below.

@erikjohnzon
erjohnson@blackberry.com
Developer
Posts: 153
Registered: ‎12-03-2012
My Device: PP
My Carrier: base(kpn)/BE, t-mobile/PL

Re: BB10 jQuery Mobile Theme renders very large UI in Simulator

I had similar problem. Probably you must change viewport metadata.

Please check:

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Ripple-vs-Simulator-scale-css-pr...

https://github.com/blackberry/BB10-WebWorks-Framework/issues/138

 

It solved the problem for me, good luck

 

--
Regards,
Pawel Gorny
my apps: http://pawelgorny.com/
PGpgp, Your Reply, Anagrammatist, Texas Hold'em Odds Calculator, Contacts to CSV
If your issue has been solved, please resolve it by marking "Accept as Solution"
Contributor
Posts: 17
Registered: ‎01-02-2013
My Device: BB 10 Simulator
My Carrier: ATT

Re: BB10 jQuery Mobile Theme renders very large UI in Simulator

[ Edited ]

I followed this solution recommended by biggerCC here:

 

<meta name="viewport" content="width=720, user-scalable=no, target-densityDpi=160" />

 

 PC_PHOTO_NEW_META.png

 

Thanks @PawelGorny for leading me in the right direction!