-
30 May 2012 6:30 AM #1
Answered: Scroll vertical in carousel to see content problem
Answered: Scroll vertical in carousel to see content problem
Hi,
I'm trying to use a carousel with direction horizontal and with scrollable to vertical.
However, the items in carousel are higher than the height of the carousel and i can't scroll to the end of content without the scroll goes to the beginning.
How to scroll like with the list component ?
My Carousel declaration :
xtype: 'carousel',
cls: [
'carouselDetailAujourdhui'
],
id: 'DetailAujourdhuiCarousel',
scrollable:
{
direction: 'vertical',
directionLock: true
},
fullscreen:true
Best regards,
Nos
-
Best Answer Posted by mitchellsimoens
If you have an item of a carousel that you want to scroll vertical, set this on the items:
Code:scrollable : { direction : 'vertical', directionLock : true }
-
30 May 2012 8:19 AM #2
mira
mira
Code:Ext.create('Ext.Carousel', { fullscreen: true, direction: 'vertical', defaults: { styleHtmlContent: true }, items: [ { html : 'Item 1', style: 'background-color: #759E60' }, { html : 'Item 2', style: 'background-color: #5E99CC' } ] });
-
30 May 2012 8:35 AM #3
This doesn't work.
I don't want a carousel with direction to vertical.
I've a carousel with direction to horizontal with scrollable to vertical.
The content of items is html but when i'm trying to scroll down my content, it scrolls automatically to the beginning after.
Why ???
Best regards,
Nos
-
31 May 2012 6:01 PM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
- Answers
- 3102
If you have an item of a carousel that you want to scroll vertical, set this on the items:
Code:scrollable : { direction : 'vertical', directionLock : true }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.
-
31 May 2012 11:18 PM #5


Reply With Quote