开发者

Sencha Touch: how to set slider and container on one horizontal line?

开发者_JAVA百科

I jsut can't set up two things side by side correctly. Help me, please


Erhm, be a little more specific as to what you want. You can always add two items next to each other by adding a wrapper panel with a hbox layout:

{
    xtype: 'panel',
    layout: {
        type: 'hbox',
        align: 'stretch'
    },
    items: [{
        xtype: 'panel',
        html: 'left',
        width: 100
    },{
        xtype: 'sliderfield',
        name: 'myslider',
        flex: 1
    }]
}

hope it helps

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜