X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FPlatform.java;h=4fee620a4c30661f3ffae8be90215c211c48b09b;hb=ee782d609881622cbfdea8fc4cc4ddc61f6bec75;hp=959c775f009854aac5c1d620eeb8eee3161a530b;hpb=8b473c168f56738abd57a883c353007fda6a24cf;p=org.ibex.core.git 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());