aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2009-01-30 09:03:23 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2009-01-30 09:03:23 +0000
commit40eb4dc3681c6b36d6b43231a18ee36c1b1f6cc3 (patch)
tree0fc0ee2c1eea22f9f3d71524d5c067dd88c1aa3d
parent86fde400990b7205ab0164a9ed84be0f5680e866 (diff)
downloadvaadin-framework-40eb4dc3681c6b36d6b43231a18ee36c1b1f6cc3.tar.gz
vaadin-framework-40eb4dc3681c6b36d6b43231a18ee36c1b1f6cc3.zip
fixes #2516 + "borders"
svn changeset:6680/svn branch:trunk
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java
index 1614c43ea4..5d4e8c86d9 100644
--- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java
+++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java
@@ -174,8 +174,28 @@ public class IView extends SimplePanel implements Container,
onWindowClosed();
goTo(url);
} else {
- // TODO width & height
- Window.open(url, target != null ? target : null, "");
+ String options;
+ if (open.hasAttribute("border")) {
+ if (open.getStringAttribute("border").equals("minimal")) {
+ options = "menubar=yes,location=no,status=no";
+ } else {
+ options = "menubar=no,location=no,status=no";
+ }
+
+ } else {
+ options = "resizable=yes,menubar=yes,toolbar=yes,directories=yes,location=yes,scrollbars=yes,status=yes";
+ }
+
+ if (open.hasAttribute("width")) {
+ int w = open.getIntAttribute("width");
+ options += ",width=" + w;
+ }
+ if (open.hasAttribute("height")) {
+ int h = open.getIntAttribute("height");
+ options += ",height=" + h;
+ }
+
+ Window.open(url, target, options);
}
childIndex++;
}