diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-25 15:05:52 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-25 15:05:52 +0100 |
commit | a3ab70686e8c890e2dbd86572f06f5c7ba202fb9 (patch) | |
tree | fd738bef524b9285296e7900e560d92c843993db /src/utils/strwidth.nim | |
parent | 407ad7a1f04893a0598b2ea02e7d2eb118d1fa32 (diff) | |
download | chawan-a3ab70686e8c890e2dbd86572f06f5c7ba202fb9.tar.gz |
layout: rework inline box area model
Specifying the background area as three LayoutUnit pairs sounds clever, but breaks down for text-align: center. * store line Y offset in LineBox - this is necessary to pass down areas we need to paint * refactor addHorizontalLine loop; remove mystery "If necessary, update ictx's width" line that used to be labeled "TODO this seems meaningless" and indeed seems meaningless now (I am prepared to deeply regret this later) * replace broken & convoluted startOffset/endOffset/size with a simple seq of offsets + sizes
Diffstat (limited to 'src/utils/strwidth.nim')
0 files changed, 0 insertions, 0 deletions