From 80b8b5ec2a33941cb3605c18e5cfa37978717954 Mon Sep 17 00:00:00 2001 From: megacz Date: Fri, 30 Jan 2004 06:50:03 +0000 Subject: [PATCH 1/1] 2002/08/16 23:33:48 darcs-hash:20040130065003-2ba56-10c45047577fb5d535efe436a2587ca86ccd6002.gz --- src/org/xwt/builtin/edit.xwt | 2 +- src/org/xwt/builtin/splash.xwt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/xwt/builtin/edit.xwt b/src/org/xwt/builtin/edit.xwt index 9e1af61..d721bb2 100644 --- a/src/org/xwt/builtin/edit.xwt +++ b/src/org/xwt/builtin/edit.xwt @@ -261,7 +261,7 @@ } var getbox = function() { - if (static.boxen.length == 0) static.boxen[0] = xwt.newBox("box"); + if (static.boxen.length == 0) static.boxen[0] = xwt.newBox(); var ret = static.boxen[static.boxen.length - 1]; static.boxen.length--; ret.minheight = lineheight; diff --git a/src/org/xwt/builtin/splash.xwt b/src/org/xwt/builtin/splash.xwt index 7ecd8ae..d710179 100644 --- a/src/org/xwt/builtin/splash.xwt +++ b/src/org/xwt/builtin/splash.xwt @@ -34,7 +34,7 @@ $status.text = "Downloading: " + pct + "% [" + num + "]"; }); - xwt.newBox("main", function(num, den) { + xwt.newBox().apply("main", function(num, den) { $left.flex = 50 + 50 * (num / den); $right.flex = 50 * (1.0 - num / den); if ($right.flex == 0) $right.width = 0; -- 1.7.10.4