aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/demo/featurebrowser/WindowingExample.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/itmill/toolkit/demo/featurebrowser/WindowingExample.java')
-rw-r--r--src/com/itmill/toolkit/demo/featurebrowser/WindowingExample.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/demo/featurebrowser/WindowingExample.java b/src/com/itmill/toolkit/demo/featurebrowser/WindowingExample.java
index 3affe5de07..99be884f4f 100644
--- a/src/com/itmill/toolkit/demo/featurebrowser/WindowingExample.java
+++ b/src/com/itmill/toolkit/demo/featurebrowser/WindowingExample.java
@@ -50,6 +50,7 @@ public class WindowingExample extends CustomComponent {
new Button.ClickListener() {
public void buttonClick(ClickEvent event) {
final Window w = new Window("Subwindow");
+ w.setWidth("50%");
final Label l = new Label(txt);
l.setContentMode(Label.CONTENT_XHTML);
w.addComponent(l);
@@ -61,6 +62,7 @@ public class WindowingExample extends CustomComponent {
b = new Button("Create a new modal window", new Button.ClickListener() {
public void buttonClick(ClickEvent event) {
final Window w = new Window("Modal window");
+ w.setWidth("50%");
w.setModal(true);
final Label l = new Label(txt);
l.setContentMode(Label.CONTENT_XHTML);