Package com.vaadin.client
Class LayoutManagerIE8
- java.lang.Object
-
- com.vaadin.client.LayoutManager
-
- com.vaadin.client.LayoutManagerIE8
-
public class LayoutManagerIE8 extends LayoutManager
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.- Since:
- 7.0.0
- Author:
- Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor Description LayoutManagerIE8()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanMeasuredSizes()Clean measured sizes which are no longer needed.protected MeasuredSizegetMeasuredSize(com.google.gwt.dom.client.Element element, MeasuredSize defaultSize)Gets the measured size for an element.protected voidperformBrowserLayoutHacks()Called once per iteration in the layout loop before size calculations so different browsers quirks can be handled.protected voidsetMeasuredSize(com.google.gwt.dom.client.Element element, MeasuredSize measuredSize)Assigns a measured size to an element.-
Methods inherited from class com.vaadin.client.LayoutManager
addElementResizeListener, forceLayout, get, getBorderBottom, getBorderHeight, getBorderLeft, getBorderRight, getBorderTop, getBorderWidth, getConnection, getInnerHeight, getInnerHeightDouble, getInnerWidth, getInnerWidthDouble, getMarginBottom, getMarginHeight, getMarginLeft, getMarginRight, getMarginTop, getMarginWidth, getOuterHeight, getOuterHeightDouble, getOuterWidth, getOuterWidthDouble, getPaddingBottom, getPaddingHeight, getPaddingLeft, getPaddingRight, getPaddingTop, getPaddingWidth, isLayoutNeeded, isLayoutRunning, layoutLater, layoutNow, registerDependency, removeElementResizeListener, reportHeightAssignedToRelative, reportOuterHeight, reportOuterWidth, reportWidthAssignedToRelative, setConnection, setEverythingNeedsMeasure, setNeedsHorizontalLayout, setNeedsLayout, setNeedsMeasure, setNeedsMeasureRecursively, setNeedsVerticalLayout, unregisterDependency
-
-
-
-
Method Detail
-
setMeasuredSize
protected void setMeasuredSize(com.google.gwt.dom.client.Element element, MeasuredSize measuredSize)Description copied from class:LayoutManagerAssigns a measured size to an element. Method defined as protected to allow separate implementation for IE8.- Overrides:
setMeasuredSizein classLayoutManager- Parameters:
element- the dom element to attach the measured size tomeasuredSize- the measured size to attach to the element. Ifnull, any previous measured size is removed.
-
getMeasuredSize
protected MeasuredSize getMeasuredSize(com.google.gwt.dom.client.Element element, MeasuredSize defaultSize)
Description copied from class:LayoutManagerGets the measured size for an element. Method defined as protected to allow separate implementation for IE8.- Overrides:
getMeasuredSizein classLayoutManager- Parameters:
element- The element to get measured size fordefaultSize- The size to return if no measured size could be found- Returns:
- The measured size for the element or defaultSize
-
cleanMeasuredSizes
public void cleanMeasuredSizes()
Description copied from class:LayoutManagerClean measured sizes which are no longer needed. Only for IE8.- Overrides:
cleanMeasuredSizesin classLayoutManager
-
performBrowserLayoutHacks
protected void performBrowserLayoutHacks()
Description copied from class:LayoutManagerCalled once per iteration in the layout loop before size calculations so different browsers quirks can be handled. Mainly this is currently for the IE8 permutation.- Overrides:
performBrowserLayoutHacksin classLayoutManager
-
-