com.google.gwt.layout.client
Class LayoutImplIE8
java.lang.Object
com.google.gwt.layout.client.LayoutImplIE8
public class LayoutImplIE8
- extends java.lang.Object
This implementation is used on IE8. Unlike LayoutImpl
, it converts
all values to pixels before setting them. This is necessary because this
browser incorrectly calculates the relative sizes and positions of CSS
properties specified in certain units (e.g., when the value of an 'em' is
non-integral in pixels).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
relativeRuler
protected DivElement relativeRuler
LayoutImplIE8
public LayoutImplIE8()
layout
public void layout(Layout.Layer layer)
onDetach
public void onDetach(Element parent)
createRuler
protected static DivElement createRuler(Style.Unit widthUnit,
Style.Unit heightUnit)
attachChild
public Element attachChild(Element parent,
Element child,
Element before)
fillParent
public void fillParent(Element elem)
finalizeLayout
public void finalizeLayout(Element parent)
- Parameters:
parent
- the parent element
getUnitSizeInPixels
public double getUnitSizeInPixels(Element parent,
Style.Unit unit,
boolean vertical)
initParent
public void initParent(Element parent)
onAttach
public void onAttach(Element parent)
removeChild
public void removeChild(Element container,
Element child)