1. #1
    Sencha User
    Join Date
    Feb 2010
    Posts
    8
    Vote Rating
    0
    tnt85 is on a distinguished road

      0  

    Default Unanswered: Two carousel (master-detail view)

    Unanswered: 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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    899
    Answers
    3575
    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


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

  3. #3
    Sencha User
    Join Date
    Feb 2010
    Posts
    8
    Vote Rating
    0
    tnt85 is on a distinguished road

      0  

    Default


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

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    899
    Answers
    3575
    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


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

Thread Participants: 1

Tags for this Thread