简体   繁体   中英

Sencha Touch Vertical Scroll Issue

I have a list with a button at the bottom, you only see the button if you scroll to the bottom. When I turn my phone landscape mode it allows me to scroll but not with it is in portrait mode. I can't figure out why I can scroll in one view but not the other??

here is my config code:

var config = {
        cls: 'customizationScreen',
        titlebarTitle: 'Customize',
        scroll: 'vertical',
        layout: {
            type: 'vbox'
            },
        items: [
            {
                scroll: 'vertical',
                xtype: 'container',
                items: [this.customizationList]
            },
            {
                layout: {
                    type: 'hbox',
                    align: 'center',
                    pack: 'center'
                    },
                defaults: {
                        xtype: 'button',
                        baseCls: 'greyButtonUp orderButton',
                        pressedCls: 'greyButtonDown'
                },
                items: [
                    {
                        text: 'Check-Out',
                        handler: Ext.createDelegate(this.onCheckOutClick, this)
                    }
                ]
            }
        ]

    };

Any suggestions, thanks so much?

I haven't gotten a chance to try this out these 1. Add layout:'fit'

items: [
        {
            scroll: 'vertical',
            xtype: 'container',
            layout: 'fit',
            items: [this.customizationList]
        },

If that didn't work I would use a DataView instead of a List and see if that works.

I'm basing this on similar (but different) issue I read about here.

Sencha forums post

If you figure this out let us know...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM