From 76ba431dee60f3a285b3c868f51e8028a272a7b7 Mon Sep 17 00:00:00 2001 From: mtlcl410 <2368091+mtlcl410@users.noreply.github.com> Date: Sun, 1 Nov 2026 19:04:18 +0800 Subject: [PATCH] M12: the XFA subform minH comment cites p. 847 and names the form it follows Acrobat on Comment only; no behaviour change. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv --- crates/xfa/src/layout/measure.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/xfa/src/layout/measure.rs b/crates/xfa/src/layout/measure.rs index d94639a1ea..8870716ad2 100644 --- a/crates/xfa/src/layout/measure.rs +++ b/crates/xfa/src/layout/measure.rs @@ -105,8 +105,9 @@ impl Layouter<'_> { content + c.margin.vertical() } }; - // A subform without a height is as tall as what it holds: other viewers do not stretch - // one, flowed or positioned, to the `minH` a designer left on it. + // A subform without a height is as tall as what it holds, flowed or positioned. XFA 3.3 + // p. 847 makes `minH` its minimum; Adobe Acrobat doesn't stretch one to it (IRCC's + // IMM 5257: section 10 at `minH="58.274mm"`), and this follows Acrobat. let min_h = match node { Node::Subform(_) if c.h.is_none() => None, _ => c.min_h,