Results 1 to 5 of 5

Thread: Scroll vertical in carousel to see content problem

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    35
    Vote Rating
    1
      0  

    Default 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
      0  

    Default 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
      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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,327
    Answers
    3884
    Vote Rating
    1297
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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
      0  

    Default

    Thanks, it works like a charm !!!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •