- Timestamp:
- 11/12/08 09:54:02 (2 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/itmill/toolkit/terminal/gwt/client/ICaption.java
r5740 r5875 15 15 import com.itmill.toolkit.terminal.gwt.client.ui.Icon; 16 16 17 //TODO Move styles to CSS18 17 public class ICaption extends HTML { 19 18 … … 60 59 sinkEvents(ITooltip.TOOLTIP_EVENTS); 61 60 62 DOM.setStyleAttribute(getElement(), "whiteSpace", "nowrap");63 64 61 } 65 62 … … 85 82 if (icon == null) { 86 83 icon = new Icon(client); 84 icon.setWidth("0px"); 85 icon.setHeight("0px"); 87 86 88 87 DOM.sinkEvents(icon.getElement(), Event.ONLOAD); … … 220 219 if (DOM.eventGetType(event) == Event.ONLOAD 221 220 && icon.getElement() == target && !iconOnloadHandled) { 221 icon.setWidth(""); 222 icon.setHeight(""); 223 222 224 /* 223 225 * IE6 pngFix causes two onload events to be fired and we want to … … 312 314 public int getHeight() { 313 315 int height = clearElement.getOffsetTop() - getElement().getOffsetTop(); 314 if (icon != null) {315 int iconHeight = icon.getOffsetHeight();316 ApplicationConnection.getConsole().log(317 "Caption height: " + height + ", icon height: "318 + iconHeight);319 }320 321 316 return height; 322 317 }
