Results 1 to 4 of 4

Thread: Two carousel (master-detail view)

  1. #1
    Sencha User
    Join Date
    Feb 2010
    Posts
    8
    Vote Rating
    0
      0  

    Default 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

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    Use vbox layout

    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'
                    }
                ]
            }
        ]
    }
    Just typing off the top of my head but should work perfectly.
    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

  3. #3
    Sencha User
    Join Date
    Feb 2010
    Posts
    8
    Vote Rating
    0
      0  

    Default

    No, that doesn't work. Carousels still shrink on orientation change...so items are not completely visible.

  4. #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

    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 @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

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
  •