diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/layout/box.nim | 1 | ||||
-rw-r--r-- | src/layout/engine.nim | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/layout/box.nim b/src/layout/box.nim index cc34c41c..8a5c33da 100644 --- a/src/layout/box.nim +++ b/src/layout/box.nim @@ -34,7 +34,6 @@ type InlineBoxBuilder* = ref object of BoxBuilder text*: seq[string] - ictx*: InlineContext newline*: bool BlockBoxBuilder* = ref object of BoxBuilder diff --git a/src/layout/engine.nim b/src/layout/engine.nim index 41b195bf..6cb12510 100644 --- a/src/layout/engine.nim +++ b/src/layout/engine.nim @@ -697,7 +697,7 @@ proc buildInline(ictx: InlineContext, box: InlineBoxBuilder) = let padding_right = box.computed{"padding-right"}.px(ictx.viewport, ictx.contentWidth) if padding_right > 0: # I don't like this, but it works... - box.ictx.currentLine.addSpacing(padding_right, max(ictx.currentLine.height, 1), paddingformat) + ictx.currentLine.addSpacing(padding_right, max(ictx.currentLine.height, 1), paddingformat) let margin_right = box.computed{"margin-right"}.px(ictx.viewport, ictx.contentWidth) ictx.currentLine.width += margin_right |