Day of the Developer

Living the life of a developer. What is development work really like?

<July 2007>
SuMoTuWeThFrSa
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

Post Categories

Article Categories

News

I'm a dad :) Welcome to a new life.

Navigation

Software Business Tips

My Sites

Subscriptions



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.

posted on Wednesday, July 04, 2007 1:31 PM by admin

Powered by Community Server, by Telligent Systems