Changeset 4991
- Timestamp:
- 07/01/08 08:12:26 (5 months ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
WebContent/ITMILL/themes/default/caption/caption.css (modified) (1 diff)
-
WebContent/ITMILL/themes/default/styles.css (modified) (1 diff)
-
src/com/itmill/toolkit/terminal/gwt/client/Tooltip.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebContent/ITMILL/themes/default/caption/caption.css
r4971 r4991 36 36 background-color: #FFE0E0; 37 37 border: 1px solid #FFB0B0; 38 overflow: auto; 38 39 } -
trunk/WebContent/ITMILL/themes/default/styles.css
r4971 r4991 100 100 background-color: #FFE0E0; 101 101 border: 1px solid #FFB0B0; 102 overflow: auto; 102 103 } 103 104 /* body tag created by servlet */ -
trunk/src/com/itmill/toolkit/terminal/gwt/client/Tooltip.java
r4959 r4991 21 21 | Event.ONMOUSEOVER | Event.ONMOUSEOUT | Event.ONMOUSEMOVE 22 22 | Event.ONCLICK; 23 protected static final int MAX_WIDTH = 280;23 protected static final int MAX_WIDTH = 500; 24 24 ErrorMessage em = new ErrorMessage(); 25 25 Element description = DOM.createDiv(); 26 26 private Paintable tooltipOwner; 27 private boolean closing ;28 private boolean opening ;27 private boolean closing = false; 28 private boolean opening = false; 29 29 private ApplicationConnection ac; 30 30 … … 80 80 81 81 setPopupPosition(x, y); 82 sinkEvents(Event.ONMOUSEOVER | Event.ONMOUSEOUT); 82 83 } 83 84 }); … … 136 137 } 137 138 closeTimer.schedule(300); 139 closing = true; 138 140 } 139 141 … … 163 165 } 164 166 167 public void onBrowserEvent(Event event) { 168 final int type = DOM.eventGetType(event); 169 // cancel closing event if tooltip is mouseovered; the user might want 170 // to scroll of cut&paste 171 172 switch (type) { 173 case Event.ONMOUSEOVER: 174 closeTimer.cancel(); 175 closing = false; 176 break; 177 case Event.ONMOUSEOUT: 178 hideTooltip(); 179 break; 180 default: 181 // NOP 182 } 183 } 184 165 185 }
