-
29 Aug 2012 5:28 AM #1
Unanswered: Two carousel (master-detail view)
Unanswered: Two carousel (master-detail view)
Hi,
temporary situation: two carousel, one bellow another (like master-detail view). When I change orientation on iPhone both carousels change their heights so that i can't see any data on it. It's necessary to have carousel because of multiple master's and multiple detail views.
Workaround is to have minimal high for each carousel, but from my experiment second carousel is still small to display data.
Anybody have any idea how to solve this ?
All best
-
31 Aug 2012 5:54 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
- Answers
- 3156
Use vbox layout
Just typing off the top of my head but should work perfectly.Code:{ xtype : 'container', layout : { type : 'vbox', align : 'stretch' }, defaultType : 'carousel', defaults : { flex : 1 }, items : [ { items : [ { html : 'Top Carousel - Item 1' }, { html : 'Top Carousel - Item 2' } ] }, { items : [ { html : 'Bottom Carousel - Item 1' }, { html : 'Bottom Carousel - Item 2' } ] } ] }Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
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 services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
2 Sep 2012 8:24 AM #3
No, that doesn't work. Carousels still shrink on orientation change...so items are not completely visible.
-
2 Sep 2012 9:31 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
- Answers
- 3156
I just tried the code I provided in iOS simulator and also on my iPhone 4S and it works perfectly and resizes properly on orientation change.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
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 services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote