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

Reply
Contributor
codewarrior_777
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? 
Please use plain text.
BlackBerry Development Advisor (Retired)
erikjohnzon
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
Please use plain text.
Contributor
codewarrior_777
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.

 

 

 

 

Please use plain text.
BlackBerry Development Advisor (Retired)
erikjohnzon
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
Please use plain text.
Developer
PawelGorny
Posts: 148
Registered: ‎12-03-2012
My Device: RED
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"
Please use plain text.
Contributor
codewarrior_777
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!

Please use plain text.