1. #1
    Ext JS Premium Member
    Join Date
    Feb 2011
    Posts
    31
    Vote Rating
    1
    christianb is on a distinguished road

      0  

    Default Bug: textfield in Toolbar

    Bug: textfield in Toolbar


    Hi,

    trying to render 2 textfields in a toolbar:

    Code:
    Ext.onReady(function() {
                var panel = Ext.create('Ext.panel.Panel', {
                            width : 400,
                            height : 300,
                            title : 'Panel',
                            dockedItems : [{
                                        xtype : 'toolbar',
                                        dock : 'top',
                                        items : [{
                                                    xtype : 'textfield'
                                                }, {
                                                    xtype : 'textfield'
                                                }]
                                    }],
                            renderTo : Ext.getBody()
                        });
            });
    Result:

    ScreenHunter_03 Mar. 14 10.00.jpg

    I can reproduce this bug also on (empty!) GridPanels. Is there any solution or workaround?

  2. #2
    Ext JS Premium Member
    Join Date
    May 2009
    Posts
    41
    Vote Rating
    0
    maksimenko is on a distinguished road

      0  

    Default


    Hello,

    Set a width for each textfield, that fixes it.

    Hope it helps

  3. #3
    Ext JS Premium Member
    Join Date
    Feb 2011
    Posts
    31
    Vote Rating
    1
    christianb is on a distinguished road

      0  

    Default


    works, thanks a lot

Thread Participants: 1