Results 1 to 3 of 3

Thread: Bug with selectField.

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    May 2012
    Location
    Belarus, Gomel
    Posts
    42
    Vote Rating
    -1
      0  

    Default Bug with selectField.

    Hi everyone.
    I am trying to put the two selectfield in one container, one on the left, the other right. But when you open the selectField, left selectField remains an active button. You can see it here.
    Screen3.pngscreen1.png
    Code:
    Ext.define('MyApp.view.MyContainer', {    extend: 'Ext.Container',
    
    
        config: {
            items: [
                {
                    xtype: 'titlebar',
                    docked: 'top',
                    title: 'Test'
                },
                {
                    xtype: 'container',
                    margin: '0.4em 0.3em 0.4em 0.3em',
                    items: [
                        {
                            xtype: 'selectfield',
                            width: '40%',
                            options: [
                                {
                                    text: 'Coca-cola',
                                    value: 'coca'
                                }
                            ]
                        },
                        {
                            xtype: 'selectfield',
                            right: 0,
                            top: 0,
                            width: '40%',
                            options: [
                                {
                                    text: 'Sprite',
                                    value: 'sp'
                                }
                            ]
                        },
                        {
                            xtype: 'button',
                            centered: true,
                            iconCls: 'add',
                            iconMask: true
                        }
                    ]
                }
            ]
        }
    
    
    });
    P.S. Sorry for my English.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      1  

    Default

    This is because you have set the top and right config making that selectfield floating versus the first one not being floating. Your button also uses the centered config which will make it floating also. You need to use layouts to accomplish this.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    May 2012
    Location
    Belarus, Gomel
    Posts
    42
    Vote Rating
    -1
      0  

    Default

    Thanks for your reply. Please show how to use layouts for the this occasion.

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
  •