3 May 2012 8:35 AM #1
Carousel code / Rotating
I am trying to make a page part of a bottom panel as a carousel. I can do this with carousel with the usage of card. But then the problem arise how to make the picture full size of the page.
Must I code it with width and height? How do I know the width and height of the container? Hard coding of sizes isn't the way to go I think.
When I rotate the device nothing is happening. How must I ensure the rotating of the user interface as well?
https://gist.github.com/2586842 This is the code of the viewport.
The whole site can be found here http://jophosting.x10.mx/mvillacomfo...llacomfort.zip
as a zip and the code in action here http://jophosting.x10.mx/mvillacomfort/ (it is the third icon at the bottom causing me a headache).
Thanks for help,
5 May 2012 5:49 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
You can use percentage sizing.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 firstname.lastname@example.org
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.
5 May 2012 6:02 AM #3
Thanks for answer I did already experiment with width and height 100% but nothing changed.
Can you be a little bit more specific. Where must I use the percentage?