From e6d44559577fe4c34fe889fc7558ef70d567b1ee Mon Sep 17 00:00:00 2001 From: sunhao Date: Wed, 19 Jul 2023 11:24:09 +0800 Subject: [PATCH] * zin: fix width not work in cell widget. --- lib/zin/wg/cell/v1.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/zin/wg/cell/v1.php b/lib/zin/wg/cell/v1.php index dd89340cb4..b43b5f61c4 100644 --- a/lib/zin/wg/cell/v1.php +++ b/lib/zin/wg/cell/v1.php @@ -21,6 +21,7 @@ class cell extends wg $flex = $this->prop('flex'); if(!empty($width)) { + $basis = $width; if(is_numeric($width)) $basis = $width . 'px'; elseif(preg_match('/^(\d+)\/(\d+)$/', $width, $matches) !== 0) $basis = ((int)$matches[1] / (int)$matches[2] * 100) . '%'; }