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,551
    Answers
    3931
    Vote Rating
    1271
      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! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  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
  •