com.vaadin.client
Class LayoutManagerIE8

java.lang.Object
  extended by com.vaadin.client.LayoutManager
      extended by 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
LayoutManagerIE8()
           
 
Method Summary
protected  void cleanMeasuredSizes()
          Clean measured sizes which are no longer needed.
protected  MeasuredSize getMeasuredSize(Element element, MeasuredSize defaultSize)
          Gets the measured size for an element.
protected  void performBrowserLayoutHacks()
          Called once per iteration in the layout loop before size calculations so different browsers quirks can be handled.
protected  void setMeasuredSize(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, getInnerWidth, getMarginBottom, getMarginHeight, getMarginLeft, getMarginRight, getMarginTop, getMarginWidth, getOuterHeight, getOuterWidth, getPaddingBottom, getPaddingHeight, getPaddingLeft, getPaddingRight, getPaddingTop, getPaddingWidth, isLayoutRunning, layoutLater, layoutNow, registerDependency, removeElementResizeListener, reportHeightAssignedToRelative, reportOuterHeight, reportOuterWidth, reportWidthAssignedToRelative, setConnection, setEverythingNeedsMeasure, setNeedsHorizontalLayout, setNeedsLayout, setNeedsMeasure, setNeedsMeasureRecursively, setNeedsVerticalLayout, unregisterDependency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutManagerIE8

public LayoutManagerIE8()
Method Detail

setMeasuredSize

protected void setMeasuredSize(Element element,
                               MeasuredSize measuredSize)
Description copied from class: LayoutManager
Assigns a measured size to an element. Method defined as protected to allow separate implementation for IE8.

Overrides:
setMeasuredSize in class LayoutManager
Parameters:
element - the dom element to attach the measured size to
measuredSize - the measured size to attach to the element. If null, any previous measured size is removed.

getMeasuredSize

protected MeasuredSize getMeasuredSize(Element element,
                                       MeasuredSize defaultSize)
Description copied from class: LayoutManager
Gets the measured size for an element. Method defined as protected to allow separate implementation for IE8.

Overrides:
getMeasuredSize in class LayoutManager
Parameters:
element - The element to get measured size for
defaultSize - The size to return if no measured size could be found
Returns:
The measured size for the element or defaultSize

cleanMeasuredSizes

protected void cleanMeasuredSizes()
Description copied from class: LayoutManager
Clean measured sizes which are no longer needed. Only for IE8.

Overrides:
cleanMeasuredSizes in class LayoutManager

performBrowserLayoutHacks

protected void performBrowserLayoutHacks()
Description copied from class: LayoutManager
Called 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:
performBrowserLayoutHacks in class LayoutManager


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.