26 Dec 2012 7:45 AM #1
Unanswered: Tablet vs Phone Zoom Question
I have an application that is almost fully-developed for a phone form factor, and for the beta release we'd like to use the same layout, etc. for tablets (we understand that it will look like a zoomed-in phone app). Long-term, we will begin utilizing profiles and different layouts, but for now we are trying to get the phone and tablet apps to look the same.
Currently, the tablet app looks similar, but the components are not larger. They are quite small (on the tablet screen), which leaves tons of whitespace within the app.
Is there a setting or configuration item that I'm missing that might enable what I'm looking for. Perhaps a meta tag on my index.html file? Or perhaps a CSS property to set a base value to be higher for tablets?
28 Dec 2012 7:17 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Are you using static height/widths with pixels?Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
28 Dec 2012 1:18 PM #3
Thanks for replying, Mitchell.
As far as I can tell, no I am not. I have some custom css that gets pre-processed via the compass process, but I was careful to use em's instead of px values. Even so, the areas where I defined custom css are few and far between. The components in play are mostly default Sencha Touch 2.0.1 components.
I read on a stack overflow thread about setting a META tag for the viewport. Could this be related and/or a requirement?
The related thread is here: http://stackoverflow.com/questions/1...ewport-scaling. The recommendation from that thread was to do something like the following, but I haven't seen an improvement.
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">