blob: 6476807ada640077223ebc084adece5239e59bd4 (
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
|
package com.vaadin.tests.tickets;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.Window;
public class Ticket2339 extends Application {
@Override
public void init() {
final Window mainWin = new Window(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();
}
}
}
|