Fix bottom-left logo clipping and Leibniz SVG viewBoxes
Three related defects conspired to clip the Leibniz Association logo at
the poster bottom, depending on viewport size and info-column width:
- #info-column used `bottom: 7vH` in print, but vh resolves against the
headless-Chrome viewport, not the page, so the offset was arbitrary.
Use a physical 25mm instead.
- The title row's margin-top collapsed through .poster_wrap, pushing the
wrap ~6% below the page bottom, so bottom-anchored children ended up in
the zone the @page bottom margin cuts off. `display: flow-root` on the
wrap stops the collapse and pins it to the page.
- Both inline Leibniz logos declared `viewBox="0 0 ... 120"` while their
drawings actually span y=89..388, so part of the artwork (notably the
"Leibniz Association" caption) could fall outside the rendered area at
certain element widths. Set the viewBoxes to the true drawing extents
(measured with inkscape --query).
Verified with the CMC2026 and DeLiKo@DNB posters: logo complete on both,
layouts otherwise unchanged.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Change-Id: Id0d871069d5a3576231313cb5d4acb20495b0c18
diff --git a/inst/rmarkdown/templates/posterdown_ids/resources/template.html b/inst/rmarkdown/templates/posterdown_ids/resources/template.html
index 2da84d1..c848ef1 100644
--- a/inst/rmarkdown/templates/posterdown_ids/resources/template.html
+++ b/inst/rmarkdown/templates/posterdown_ids/resources/template.html
@@ -69,6 +69,10 @@
height: $if(poster_height)$$poster_height$$else$1189mm$endif$;
padding: 0cm;
position: relative;
+/* Stop the title row's margin-top from collapsing through the wrap: collapse
+ pushed the whole wrap ~6% below the page bottom, so bottom-anchored children
+ (#info-column) ended up in the print margin's cut-off zone. */
+display: flow-root;
}
.title_container {
display: table;
@@ -304,7 +308,12 @@
@media print {
#info-column {
- bottom: 7vH;
+ /* Physical unit, NOT vh: in headless Chrome vh resolves against the browser
+ viewport, not the page, so the old `bottom: 7vH` put the bottom logo into
+ the zone the @page bottom margin cuts off (or left it there by accident).
+ Works together with `display: flow-root` on .poster_wrap, which pins the
+ wrap to the page so `bottom` is measured from the real page bottom. */
+ bottom: 25mm;
page-break-inside: avoid;
}
}
@@ -762,7 +771,7 @@
id="svg1"
width="377.95227"
height="299.94974"
- viewBox="0 0 377.95227 120"
+ viewBox="0 0 377.95227 299.94974"
style="width: 60%;"
sodipodi:docname="leibnz-logo-de.svg"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
@@ -1127,7 +1136,7 @@
id="svg7408"
width="377.95282"
height="298.83835"
- viewBox="0 0 377.95282 120"
+ viewBox="0 0 377.95282 298.83835"
style="width: 60%;"
sodipodi:docname="leibniz-logo.svg"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"