From aa81a38241f4758c3fd40746af089e1ed3cf2850 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 26 Jun 2026 17:18:59 +0800 Subject: [PATCH] bugfix --- bricks/running.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bricks/running.js b/bricks/running.js index 3f77dd8..41885b4 100644 --- a/bricks/running.js +++ b/bricks/running.js @@ -7,10 +7,12 @@ bricks.BaseRunning = class extends bricks.HBox { } */ constructor(opts){ - if (! opts.cwidth) opts.cwidth = 2; + if (! opts.cwidth) opts.width = 'auto'; if (! opts.cheight) opts.cheight = 2; super(opts); this.icon_w = new bricks.Icon({ + height: '100%', + width: 'auto', url:opts.icon || bricks_resource('imgs/running.gif') }); this.time_w = new bricks.Text({