From 40eb4dc3681c6b36d6b43231a18ee36c1b1f6cc3 Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Fri, 30 Jan 2009 09:03:23 +0000 Subject: [PATCH] fixes #2516 + "borders" svn changeset:6680/svn branch:trunk --- .../toolkit/terminal/gwt/client/ui/IView.java | 24 +++++++++++++++++-- 1 file 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++; } -- 2.39.5