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
    dmitryfisko is an unknown quantity at this point

      0  

    Default Bug with selectField.

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,620
    Vote Rating
    817
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    May 2012
    Location
    Belarus, Gomel
    Posts
    42
    Vote Rating
    -1
    dmitryfisko is an unknown quantity at this point

      0  

    Default


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

Thread Participants: 1

Tags for this Thread