blob: e1eb9ed5c41667748fe67059394f2f04ebb12f06 (
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
30
31
32
33
34
35
36
37
38
39
|
package com.vaadin.tests.tickets;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import com.vaadin.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2339 extends LegacyApplication {
@Override
public void init() {
final LegacyWindow mainWin = new LegacyWindow(getClass()
.getSimpleName());
setMainWindow(mainWin);
try {
CustomLayout cl = new CustomLayout(
new ByteArrayInputStream(
"<div style=\"width:400px;overflow:hidden;background-color:red;\"><div style=\"border:1em solid blue; height:4em; padding:1em 1.5em;\" location=\"b\"></div></div>"
.getBytes()));
Button button = new Button("b");
button.setSizeFull();
cl.addComponent(button, "b");
mainWin.addComponent(cl);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
|