Results 1 to 3 of 3

Thread: Anchor Layout does not take effect

  1. #1
    Sencha User
    Join Date
    Aug 2009
    Posts
    7
    Vote Rating
    0
      0  

    Default 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,615
    Vote Rating
    55
      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
      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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •