com.vaadin.client.

Class 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 Detail

      • LayoutManagerIE8

        public LayoutManagerIE8()
    • Method Detail

      • setMeasuredSize

        protected void setMeasuredSize(com.google.gwt.dom.client.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(com.google.gwt.dom.client.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

      • 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