Results 1 to 2 of 2

Thread: selectfield with button added wrapped layout

  1. #1
    Sencha User MrNickBarker's Avatar
    Join Date
    Apr 2013
    Posts
    21
    Vote Rating
    0
      0  

    Default selectfield with button added wrapped layout

    I'm trying to add a button to a select field, but no matter what I do the value label gets wrapped to the next row. When I don't set 'label' everything is ok, but then (obviously) the label is missing.

    Screen Shot 2013-05-13 at 1.29.31 PM.png

    Code:
    xtype:'field',                        
    component:{
             xtype:'container',
             layout:'hbox',
             items:[
                 {
                        xtype:'selectfield',
                        name:'artist',
                        label:'Name',
                        store:'artistsStore',
                        placeHolder:'Select an artist...',
                        displayField:'name',
                        valueField:'name',
                        autoSelect: false,
                        flex:8
                   },
                   {
                        xtype:'button',
                        text:'+',
                        margin: 5,
                        flex:1
                   }
       ]
    }

  2. #2
    Sencha User MrNickBarker's Avatar
    Join Date
    Apr 2013
    Posts
    21
    Vote Rating
    0
      0  

    Default

    I just tested, and the same thing happens if I use a textfield instead of a selectfield.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •