开发者

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

开发者 https://www.devze.com 2023-03-25 20:47 出处:网络
开发者_JAVA百科I jsut can\'t set up two things side by side correctly. Help me, pleaseErhm, be a little more specific as to what you want.
开发者_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

精彩评论

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

关注公众号