about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/css/layout.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/css/layout.nim b/src/css/layout.nim
index 1539e5c1..a833126c 100644
--- a/src/css/layout.nim
+++ b/src/css/layout.nim
@@ -2179,6 +2179,7 @@ proc layoutCaption(tctx: TableContext; parent, box: BlockBox) =
     box.state.offset.y += table.state.size.h
   parent.state.size.h += outerHeight
   parent.state.size.w = max(parent.state.size.w, outerWidth)
+  parent.state.xminwidth = max(parent.state.xminwidth, box.state.xminwidth)
 
 # Table layout. We try to emulate w3m's behavior here:
 # 1. Calculate minimum and preferred width of each column