Results 1 to 3 of 3

Thread: extjs 4.2.0: 'hiddenfield' occupies the visile place in the form

Hybrid View

Previous Post Previous Post   Next Post Next Post
    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-9260 in 4.2.1.744.
  1. #1
    Ext JS Premium Member
    Join Date
    Jun 2011
    Location
    St. Louis
    Posts
    220
    Vote Rating
    9
      0  

    Default extjs 4.2.0: 'hiddenfield' occupies the visile place in the form

    'hiddenfield' occupies the visible place in the form. EXTJSIV-6081 comes back in extjs 4.2.0. Even height is set to 0.
    See the test code. Tested with FF and Chrome.

    PHP Code:
    Ext.onReady(function() {

        var 
    form Ext.create('Ext.form.Panel', {
        
    layout'anchor',
            
    borderfalse,
            
    defaultType'textfield',
            
    bodyPadding5,
            
    items: [{
                
    fieldLabel'Send To',
                
    name'to',
                
    anchor:'100%' 
            
    },{
                
    fieldLabel'Subject',
                
    name'subject',
                
    anchor'100%' 
            
    }, {
                
    xtype'hiddenfield',
                
    name'h1',
            
    height0,
            
    value'h1'
            
    }, {
                
    xtype'hiddenfield',
                
    name'h2',
            
    height0,
            
    value'h2'
            
    }, {
                
    xtype'hiddenfield',
                
    name'h3',
            
    height0,
            
    value'h3'
            
    }, {
                
    xtype'hiddenfield',
                
    name'h4',
            
    height0,
            
    value'h4'
            
    }, {
                
    xtype'hiddenfield',
                
    name'h5',
            
    height0,
            
    value'h5'
            
    }, {
                
    xtype'hiddenfield',
                
    name'h6',
            
    height0,
            
    value'h6'
            
    }, {
                
    xtype'hiddenfield',
                
    name'h7',
            
    height0,
            
    value'h7'
            
    }, {
                
    xtype'hiddenfield',
                
    name'h8',
            
    height0,
            
    value'h8'
            
    }, {
                
    xtype'hiddenfield',
                
    name'h9',
            
    height0,
            
    value'h9'
            
    }, {
                
    xtype'hiddenfield',
                
    name'h10',
            
    height0,
            
    value'h10'
            
    }, {
                
    xtype'hiddenfield',
                
    name'h7',
            
    value'h7'
            
    }, {
                
    xtype'textarea',
                
    hideLabeltrue,
            
    minHeight100,
                
    name'msg',
                
    anchor'100% -67' 
            
    }]
        });
        var 
    win Ext.create('Ext.window.Window', {
            
    title'Resize Me',
            
    width500,
            
    height:600,
            
    layout'fit',
        
    maximizabletrue,
            
    plaintrue,
            
    itemsform,
        
    listeners: { resize: function() { } },
            
    buttons: [{
                
    text'Send'
            
    },{
                
    text'Cancel'
            
    }]
        });
        
    win.show();

    }); 

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,336
    Vote Rating
    1296
      0  

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha Premium Member i.stojanovic's Avatar
    Join Date
    Oct 2010
    Location
    Kragujevac, Serbia
    Posts
    24
    Vote Rating
    1
      0  

    Default Hide "hidden" field

    Problem:
    ExtJS 4.2 hide hidden field, but don't hide table that surrounds the field.

    Solution:
    In your css file put
    Code:
    .x-form-item-hidden { display:none; }
    This CSS is in style attribute of table.
    Last edited by i.stojanovic; 21 May 2013 at 5:42 AM. Reason: change text style
    www.codelighter.com
    There are 10 types of people in this world, those who understand binary and those who dont

Posting Permissions

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