Threaded View

  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    249
    Vote Rating
    1
    Answers
    2
    Ex_Soft is an unknown quantity at this point

      0  

    Default Answered: [4.1.1] How to align textfield with combobox/datefield?

    Answered: [4.1.1] How to align textfield with combobox/datefield?


    Textfield isn't aligned with combobox/datefield:
    Code:
    Ext.onReady(function() {
        Ext.QuickTips.init();
    
        Ext.create("Ext.window.Window", {
            title: "Test Ext.layout.container.Anchor",
            autoShow: true,
            layout: "fit",
            border: 0,
            items:[{
                xtype: "form",
                frame: true,
                bodyStyle: "padding: 5px 0 0 0",
                items: [{
                    xtype: "textfield",
                    fieldLabel: "textfield",
                    anchor: "100%"
                }, {
                    xtype: "combobox",
                    fieldLabel: "combobox",
                    anchor: "100%"
                }, {
                    xtype: "datefield",
                    fieldLabel: "datefield",
                    anchor: "100%"
                }]
            }]
        });
    });
    http://jsfiddle.net/ZgcAS/1/

    P.S. BTW, textfield is aligned if window will be resized.

  2. Hi Ext_soft,

    Give width config to the window container.

Thread Participants: 2