1. #1
    Sencha User
    Join Date
    Aug 2009
    Posts
    7
    Vote Rating
    0
    stevenhu is on a distinguished road

      0  

    Default Anchor Layout does not take effect

    Anchor Layout does not take effect


    The code below runs well under 4.0.7, but does not works well under 4.1 beta 3, I use anchor layout here, in 4.1 beta 3, the textfield's width is very small.

    Code:
    Ext.define('SysModule.view.form.Search', {
        extend: 'Ext.form.Panel',
        alias: 'widget.formsearch',
        region: 'north',
        collapsible: true,
        collapseMode: 'header',
        collapsed: true,
        title: 'Advance Search',
        bodyPadding: '5px 5px 0px 5px',
        layout: 'column',
    
    
        items: [{
            columnWidth: .5,
            layout: 'anchor',
            items: [{
                anchor: '-10',
                xtype: 'textfield', 
                name: 'moduleCode', 
                fieldLabel: 'Code'
            }]
        }]
    });
    can anybody helps me

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,483
    Vote Rating
    35
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    It works.

    Code:
    Ext.define('Ext.TestPanel', {
        extend: 'Ext.form.Panel',
        alias: 'widget.formsearch',
        region: 'north',
        collapsible: true,
        title: 'Advance Search',
        bodyPadding: '5px 5px 0px 5px',
        layout: 'column',
    
    
        items: [{
            columnWidth: .5,
            layout: 'anchor',
            items: [{
                anchor: '-10',
                xtype: 'textfield', 
                name: 'moduleCode', 
                fieldLabel: 'Code'
            }]
        }]
    });
    new Ext.TestPanel({width: 400, height: 200, renderTo: document.body});
    shows

  3. #3
    Sencha User
    Join Date
    Aug 2009
    Posts
    7
    Vote Rating
    0
    stevenhu is on a distinguished road

      0  

    Default


    Hi, it works, I clear the cache, and everything is ok now.
    BTW, 4.1 beta3 is really faster than 4.0.7, the same application in IE8 which is using 4.0.7 will cost almost 10's to open, but in 4.1 beta 3 it just cost 4's, what a great job you'v done.

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar