Browse Source

Add some explanatory Javadoc

tags/7.0.0.beta1
Leif Åstrand 11 years ago
parent
commit
ddec809e9b
1 changed files with 12 additions and 0 deletions
  1. 12
    0
      client/src/com/vaadin/client/LayoutManagerIE8.java

+ 12
- 0
client/src/com/vaadin/client/LayoutManagerIE8.java View File

@@ -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>();

Loading…
Cancel
Save