aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket2095.java
blob: 701c306c1922d8b0882c20f4459ce6b7b7ad52aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.vaadin.tests.tickets;

import com.vaadin.LegacyApplication;
import com.vaadin.server.ExternalResource;
import com.vaadin.ui.Embedded;
import com.vaadin.ui.UI.LegacyWindow;

public class Ticket2095 extends LegacyApplication {

    @Override
    public void init() {
        LegacyWindow w = new LegacyWindow(getClass().getSimpleName());
        setMainWindow(w);

        // uncomment to workaround iorderedlayout bug in current trunk
        // w.setContent(new ExpandLayout());
        w.getContent().setSizeFull();

        Embedded em = new Embedded();
        em.setType(Embedded.TYPE_BROWSER);
        em.setSource(new ExternalResource("../statictestfiles/ticket2095.html"));
        em.setId("MYIFRAME");

        em.setSizeFull();

        w.addComponent(em);

    }
}