}
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;
$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;