diff options
author | Jens Jansson <jens.jansson@vaadin.com> | 2012-03-09 11:22:43 +0000 |
---|---|---|
committer | Jens Jansson <jens.jansson@vaadin.com> | 2012-03-09 11:22:43 +0000 |
commit | d075d778b41a299d9b47d4b78ebf9e639d0f732a (patch) | |
tree | 08af4da898c757fd76ae9fa4088e48bd3e00524a /src/com/vaadin/terminal | |
parent | a130a965cf7bd8fbc5469d9de3d3a6042aaded67 (diff) | |
download | vaadin-framework-d075d778b41a299d9b47d4b78ebf9e639d0f732a.tar.gz vaadin-framework-d075d778b41a299d9b47d4b78ebf9e639d0f732a.zip |
#8454 Fixes miscalculated tooltip sizes when tooltips opens at browser edges.
svn changeset:23208/svn branch:6.8
Diffstat (limited to 'src/com/vaadin/terminal')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/VTooltip.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/VTooltip.java b/src/com/vaadin/terminal/gwt/client/VTooltip.java index ed8bd2eedd..974e2f1f32 100644 --- a/src/com/vaadin/terminal/gwt/client/VTooltip.java +++ b/src/com/vaadin/terminal/gwt/client/VTooltip.java @@ -72,6 +72,11 @@ public class VTooltip extends VOverlay { DOM.setStyleAttribute(description, "display", "none"); } if (hasContent) { + // Issue #8454: With IE7 the tooltips size is calculated based on + // the last tooltip's position, causing problems if the last one was + // in the right or bottom edge. For this reason the tooltip is moved + // first to 0,0 position so that the calculation goes correctly. + setPopupPosition(0, 0); setPopupPositionAndShow(new PositionCallback() { public void setPosition(int offsetWidth, int offsetHeight) { |