ASP.AJAX CollapsiblePanelExtender in IE 6
In IE 7, this control works beautifully.
In IE 6, it animates the collapse of the panel, then reverts to the full size of the panel.
As far as I can determine, the cause is these two functions in the BLOCKED SCRIPT
get_TargetHeight : function() {
return this.get_element().offsetHeight;
}
set_TargetHeight : function(value) {
this.get_element().style.height = value + "px";
this.raisePropertyChanged('TargetHeight');
}
You will no doubt notice that get_TargetHeight uses the element offsetHeight, but set_TargetHeight uses style.height instead. Well in IE 7, offsetHeight becomes 0, but in IE 6, it stays at the full height of the DIV.
I'd post this on the AJAX site, but since that page just asks me repeatedly for a windows login, it kind of makes it impossible.