2002/08/16 23:33:48
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:50:03 +0000 (06:50 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:50:03 +0000 (06:50 +0000)
darcs-hash:20040130065003-2ba56-10c45047577fb5d535efe436a2587ca86ccd6002.gz

src/org/xwt/builtin/edit.xwt
src/org/xwt/builtin/splash.xwt

index 9e1af61..d721bb2 100644 (file)
         }
 
         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;
index 7ecd8ae..d710179 100644 (file)
@@ -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;