about summary refs log tree commit diff stats
path: root/src/layout
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout')
-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 25da94b2..b96f11fa 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -9,7 +9,7 @@ import utils/twtstr
 import io/term
 
 func cells_in(l: CSSLength, state: LayoutState, d: int, p: Option[int], o: bool): int =
-  return cells(l, d, state.term.width, state.term.height, p, o)
+  return cells(l, d, state.term.width_px, state.term.height_px, p, o)
 
 func cells_w(l: CSSLength, state: LayoutState, p: int): int =
   return l.cells_in(state, state.term.ppc, p.some, true)