summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/gwt/client/LayoutManagerIE8.java
blob: 2b677985b5aba0f133cacb27c0a3e7b8cb4f7c14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
@VaadinApache2LicenseForJavaFiles@
 */
package com.vaadin.terminal.gwt.client;

import com.google.gwt.dom.client.Element;

public class LayoutManagerIE8 extends LayoutManager {

    @Override
    protected native void setMeasuredSize(Element element,
            MeasuredSize measuredSize)
    // IE8 cannot do delete element.vMeasuredSize, at least in the case when
    // element is not attached to the document (e.g. when a caption is removed)
    /*-{
        if (measuredSize) {
            element.vMeasuredSize = measuredSize;
        } else {
            element.vMeasuredSize = undefined;
        }
    }-*/;

}