diff options
author | bptato <nincsnevem662@gmail.com> | 2021-11-25 23:39:27 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2021-11-25 23:39:27 +0100 |
commit | bf3b8804c0fe35f3f5a98ef60c19fde52c415c5e (patch) | |
tree | a80eee7ee4abeddbe208e6308ebacd2484a69f54 /src/css/values.nim | |
parent | 5cb5a4103188969bb7a3b695a20ddb63b6a86bce (diff) | |
download | chawan-bf3b8804c0fe35f3f5a98ef60c19fde52c415c5e.tar.gz |
Refactor some parts of the layout engine
Diffstat (limited to 'src/css/values.nim')
-rw-r--r-- | src/css/values.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/css/values.nim b/src/css/values.nim index b5de5ec5..54324538 100644 --- a/src/css/values.nim +++ b/src/css/values.nim @@ -107,6 +107,8 @@ func cells*(l: CSSLength): int = case l.unit of UNIT_EM: return int(l.num) + of UNIT_CH: + return int(l.num) else: #TODO return int(l.num / 8) |