about summary refs log tree commit diff stats
path: root/src/layout/engine.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-24 14:30:37 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-24 14:30:37 +0100
commitb5d6c75ae003325b783a831fa54b083a3d1d8b55 (patch)
treebe44bbf4e4727483424124a5e4381e3289d15476 /src/layout/engine.nim
parent5641e4a1e8ac4cf278a12f1865e8e0ba302c227c (diff)
downloadchawan-b5d6c75ae003325b783a831fa54b083a3d1d8b55.tar.gz
layout: make it compile
:/
Diffstat (limited to 'src/layout/engine.nim')
-rw-r--r--src/layout/engine.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index 049da947..6ae28e8f 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -2176,8 +2176,8 @@ proc layoutBlockChildren(state: var BlockState, bctx: var BlockContext,
     var dy: LayoutUnit = 0 # delta
     var child: BlockBox
     let isfloat = builder.computed{"float"} != FLOAT_NONE
-    let isinflow = builder.computed{"position"} != POSITION_ABSOLUTE
-      and not isfloat
+    let isinflow = builder.computed{"position"} != POSITION_ABSOLUTE and
+      not isfloat
     if builder.computed.establishesBFC():
       var marginBottomOut: LayoutUnit
       child = bctx.lctx.layoutRootBlock(builder, state.space, state.offset,