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,499
    Vote Rating
    46
    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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi