about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/layout/engine.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index 6ca232b7..0fbaf882 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -116,7 +116,7 @@ proc processInlineBox(parent: CSSBox, str: string): CSSBox =
       ibox.context.whitespace = false
       fastRuneAt(str, i, r)
       rw = r.width()
-      if rowbox.width + r.width() > ibox.width:
+      if fromx + rowbox.width + r.width() > ibox.width:
         inlineWrap(ibox, rowi, fromx, rowbox)
 
     rowbox.width += rw