public IAccordion() {
super(CLASSNAME);
stack = new ArrayList();
+ // IE6 needs this to calculate offsetHeight correctly
+ if (Util.isIE6()) {
+ DOM.setStyleAttribute(getElement(), "zoom", "1");
+ }
}
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
DOM.setStyleAttribute(w.getElement(), "visibility", "hidden");
DOM.setStyleAttribute(w.getElement(), "position", "absolute");
}
- DOM.setStyleAttribute(item.getContainerElement(), "height", "");
+ DOM.setStyleAttribute(item.getContainerElement(), "height", "0");
// Calculate target height
super.setHeight(height);
return content;
}
+ public Element getCaptionElement() {
+ return captionNode;
+ }
+
public void onBrowserEvent(Event evt) {
if (DOM.eventGetType(evt) == Event.ONCLICK) {
Element target = DOM.eventGetTarget(evt);