From: megacz Date: Fri, 30 Jan 2004 06:50:03 +0000 (+0000) Subject: 2002/08/16 23:33:48 X-Git-Tag: RC3~1567 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=80b8b5ec2a33941cb3605c18e5cfa37978717954;hp=fea7c3bad0cb940fdbf609bb30b14f3ea3328e46;p=org.ibex.core.git 2002/08/16 23:33:48 darcs-hash:20040130065003-2ba56-10c45047577fb5d535efe436a2587ca86ccd6002.gz --- 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;