javascript - Sencha Touch Vertical Scroll Issue - Stack Overflow

I have a list with a button at the bottom, you only see the button if you scroll to the bottom.When I

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

Share Improve this question asked Mar 31, 2011 at 14:48 XtianXtian 3,58711 gold badges57 silver badges92 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 4

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744374866a4571135.html

相关推荐

  • javascript - Sencha Touch Vertical Scroll Issue - Stack Overflow

    I have a list with a button at the bottom, you only see the button if you scroll to the bottom.When I

    7天前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信