-
28 Sep 2010 7:55 AM #1
[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({
labelWidth: 75, // label settings here cascade unless overridden
frame:true,
title: 'Simple Form with FieldSets',
bodyStyle:'padding:5px 5px 0',
width: 350,
items: [{
xtype:'fieldset',
checkboxToggle:true,
title: 'User Information',
autoHeight:true,
defaults: {width: 210},
defaultType: 'textfield',
collapsed: true,
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',
collapsible: true,
autoHeight:true,
defaults: {width: 210},
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);
});
-
28 Sep 2010 8:36 AM #2
Patch to fix the problem
Code:Ext.override(Ext.Component, { isVisible : function(){ return this.rendered && this.getVisibilityEl().isVisible(true); } });
-
4 Oct 2010 9:10 AM #3Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,651
- Vote Rating
- 14
I understand the issue, but not your fix.
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[OPEN-1108] IE6 NumberField selectOnFocus
By ciba1 in forum Ext 3.x: BugsReplies: 4Last Post: 8 Jul 2010, 12:41 AM -
[OPEN-1038] ComboBox not aligned properly on IE6
By VT-TizianoF in forum Ext 3.x: BugsReplies: 1Last Post: 11 Jun 2010, 11:47 AM -
[2.0.1] TreePanel IE6 flickers on node open and close
By The_Jackal in forum Ext GWT: Bugs (2.x)Replies: 3Last Post: 30 Jul 2009, 5:09 PM -
[2.0][OPEN] IE6 paging toolbar button not disabled
By FxMan in forum Ext 2.x: BugsReplies: 10Last Post: 10 Jun 2009, 8:04 AM -
Submit form open a new window in ie6
By guto in forum Ext 1.x: Help & DiscussionReplies: 5Last Post: 22 Jun 2007, 4:14 AM


Reply With Quote