From: megacz Date: Fri, 30 Jan 2004 06:48:37 +0000 (+0000) Subject: 2002/07/01 21:03:52 X-Git-Tag: RC3~1655 X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=commitdiff_plain;h=ee782d609881622cbfdea8fc4cc4ddc61f6bec75 2002/07/01 21:03:52 darcs-hash:20040130064837-2ba56-b416498f4081a3a35a71814d8522e22773dd04a6.gz --- diff --git a/CHANGES b/CHANGES index c582287..c1a3330 100644 --- a/CHANGES +++ b/CHANGES @@ -231,3 +231,6 @@ 01-Jul megacz POSIX.java, POSIX.cc: initial window size, DISPLAY string logging, http_proxy environment variable checking, font fixes + +01-Jul megacz Platform.java: initial window size fixes + diff --git a/src/org/xwt/Platform.java b/src/org/xwt/Platform.java index 959c775..4fee620 100644 --- a/src/org/xwt/Platform.java +++ b/src/org/xwt/Platform.java @@ -310,8 +310,8 @@ public class Platform { public static Surface createSurface(Box b, boolean framed, boolean refreshable) { Surface ret = platform._createSurface(b, framed); ret.setInvisible(b.invisible); - b.set(Box.size, 0, ret.width); - b.set(Box.size, 1, ret.height); + b.set(Box.size, 0, b.size(0) == 0 ? 10 : b.size(0)); + b.set(Box.size, 1, b.size(1) == 0 ? 10 : b.size(1)); Object titlebar = b.get("titlebar", null, true); if (titlebar != null) ret.setTitleBarText(titlebar.toString());