Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2007
    Location
    Bordeaux, France
    Posts
    75
    Vote Rating
    0
    Thylia is on a distinguished road

      0  

    Default [OPEN-1293] isVisible and IE6

    [OPEN-1293] isVisible and IE6


    Hello,

    When a field is hidden in a collapsed fieldset, and we check if it is visible or not the isVisible function in IE6 always answers true.

    Works correctly under FF and IE8

    PHP Code:
    Ext.onReady(function(){
        var 
    fsf = new Ext.FormPanel({
            
    labelWidth75// label settings here cascade unless overridden
            
    frame:true,
            
    title'Simple Form with FieldSets',
            
    bodyStyle:'padding:5px 5px 0',
            
    width350,

            
    items: [{
                
    xtype:'fieldset',
                
    checkboxToggle:true,
                
    title'User Information',
                
    autoHeight:true,
                
    defaults: {width210},
                
    defaultType'textfield',
                
    collapsedtrue,
                
    items :[{
                        
    fieldLabel'First Name',
                        
    name'first',
                        
    allowBlank:false
                    
    },{
                        
    fieldLabel'Last Name',
                        
    name'last'
                    
    },{
                        
    fieldLabel'Company',
                        
    name'company'
                    
    }, {
                        
    fieldLabel'Email',
                        
    name'email',
                        
    vtype:'email'
                    
    }
                ]
            },{
                
    xtype:'fieldset',
                
    title'Phone Number',
                
    collapsibletrue,
                
    autoHeight:true,
                
    defaults: {width210},
                
    defaultType'textfield',
                
    items :[{
                        
    fieldLabel'Home',
                        
    name'home',
                        
    value'(888) 555-1212'
                    
    },{
                        
    fieldLabel'Business',
                        
    name'business'
                    
    },{
                        
    fieldLabel'Mobile',
                        
    name'mobile'
                    
    },{
                        
    fieldLabel'Fax',
                        
    name'fax'
                    
    }
                ]
            }],

            
    buttons: [{
                
    text'Save',
                
    handler: function(){
                    if ( !
    fsf.getForm().isValid() ) {
                        var 
    valid true;
                        var 
    fieldItems fsf.getForm().items;
                        
    fieldItems.each(function(f) {
                            if ( !
    f.isValid() ) {
                                
    alert f.fieldLabel ' : ' f.id ".isVisible()= " f.isVisible() );
                                if ( !
    f.isVisible()  ) {
                                    
    alert "!f.isVisible()" );
                                    if ( !
    f.hideParent ) {
                                        
    alert "!f.hideParent" );
                                        if ( !
    f.ownerCt.hidden && !f.ownerCt.collapsed ) {
                                            
    alert "!f.ownerCt.hidden" );
                                            if ( !
    f.ownerCt.ownerCt.hidden && !f.ownerCt.ownerCt.collapsed ) {
                                                
    alert "!f.ownerCt.ownerCt.hidden" );
                                                if ( !
    f.ownerCt.ownerCt.ownerCt.hidden && !f.ownerCt.ownerCt.ownerCt.collapsed ) {
                                                    
    alert "!f.ownerCt.ownerCt.ownerCt.hidden" );
                                                }
                                                else
                                                    
    f.ownerCt.ownerCt.ownerCt.show();
                                            }
                                            else
                                                
    f.ownerCt.ownerCt.show();
                                        }
                                        else {
                                            if ( 
    f.ownerCt.hidden f.ownerCt.show  ();
                                            else                    
    f.ownerCt.expand();
                                        }
                                    }
                                    else
                                        
    f.ownerCt.show();
                                }
                                
    valid false;
                            }
                        });
                    }
                }
            },{
                
    text'Cancel'
            
    }]
        });

        
    fsf.render(document.body);
    }); 

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    Bordeaux, France
    Posts
    75
    Vote Rating
    0
    Thylia is on a distinguished road

      0  

    Default


    Patch to fix the problem

    Code:
    Ext.override(Ext.Component, {
        isVisible : function(){
            return this.rendered && this.getVisibilityEl().isVisible(true);
        }
    });

  3. #3
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    I understand the issue, but not your fix.

Similar Threads

  1. [OPEN-1108] IE6 NumberField selectOnFocus
    By ciba1 in forum Ext 3.x: Bugs
    Replies: 4
    Last Post: 8 Jul 2010, 12:41 AM
  2. [OPEN-1038] ComboBox not aligned properly on IE6
    By VT-TizianoF in forum Ext 3.x: Bugs
    Replies: 1
    Last Post: 11 Jun 2010, 11:47 AM
  3. [2.0.1] TreePanel IE6 flickers on node open and close
    By The_Jackal in forum Ext GWT: Bugs (2.x)
    Replies: 3
    Last Post: 30 Jul 2009, 5:09 PM
  4. [2.0][OPEN] IE6 paging toolbar button not disabled
    By FxMan in forum Ext 2.x: Bugs
    Replies: 10
    Last Post: 10 Jun 2009, 8:04 AM
  5. Submit form open a new window in ie6
    By guto in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 22 Jun 2007, 4:14 AM

Thread Participants: 1