summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/src/com/vaadin/client/LayoutManagerIE8.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/LayoutManagerIE8.java b/client/src/com/vaadin/client/LayoutManagerIE8.java
index 4cc06baf4c..a086a529c7 100644
--- a/client/src/com/vaadin/client/LayoutManagerIE8.java
+++ b/client/src/com/vaadin/client/LayoutManagerIE8.java
@@ -23,6 +23,18 @@ import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
import com.google.gwt.user.client.ui.RootPanel;
+/**
+ * Alternative MeasuredSize storage for IE8. Storing any information in a DOM
+ * element in IE8 seems to make the browser think the element has changed in a
+ * way that requires a reflow. To work around that, the MeasureData is instead
+ * stored in Map for IE8.
+ *
+ * This implementation is injected for IE8 by a replace-with definition in the
+ * GWT module.
+ *
+ * @author Vaadin Ltd
+ * @since 7.0.0
+ */
public class LayoutManagerIE8 extends LayoutManager {
private Map<Element, MeasuredSize> measuredSizes = new HashMap<Element, MeasuredSize>();