1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    35
    Vote Rating
    1
    Nos is on a distinguished road

      0  

    Default 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

  2. 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
    }

  3. #2
    Sencha User
    Join Date
    May 2012
    Posts
    5
    Vote Rating
    0
    Dehost is on a distinguished road

      0  

    Default 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'
            }
        ]
    });

  4. #3
    Sencha User
    Join Date
    May 2012
    Posts
    35
    Vote Rating
    1
    Nos is on a distinguished road

      0  

    Default


    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

  5. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,387
    Answers
    3548
    Vote Rating
    848
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  6. #5
    Sencha User
    Join Date
    May 2012
    Posts
    35
    Vote Rating
    1
    Nos is on a distinguished road

      0  

    Default


    Thanks, it works like a charm !!!