Skip to content

fix(examples): crop the engine banner tight to its content#208

Merged
DemchaAV merged 1 commit into
developfrom
fix/engine-banner-crop
Jun 17, 2026
Merged

fix(examples): crop the engine banner tight to its content#208
DemchaAV merged 1 commit into
developfrom
fix/engine-banner-crop

Conversation

@DemchaAV

Copy link
Copy Markdown
Owner

Why

EngineDeckExample.generateBanner() rendered the standalone engine-banner on a full A4-landscape page (842×595) with a 16pt margin and a 30pt panel pad. The banner content is a top-anchored stack, so it sat inside a thick dead dark border with extra slack below the capability chips — the rasterised hero wasted space and read small.

What changed

  • Page sized to the content: 801×525 (was DocumentPageSize.A4.landscape()).
  • Margin 16 → 8, banner panel pad 30 → 18.
  • Net frame ~26pt uniform instead of ~46pt; the width hugs the 749pt rules, the height wraps the logo→chips stack.

Only generateBanner() and the banner panel are touched — the four-page deck (generate(), snapshot-locked by EngineDeckLayoutSnapshotTest) is unchanged.

Verification

  • Rendered the banner via PDFBox at 2×: one page, 801×525, nothing clipped or paginated (512pt paginated — 525 is the safe single-page minimum).
  • ./mvnw -f examples/pom.xml compile → exit 0.

Committed previews are untouched — the release cut re-renders the banner card, keeping it consistent.

The standalone engine-banner page used full A4-landscape on a 16pt margin
and a 30pt panel pad, so the top-anchored logo→chips stack sat inside a
thick dead dark border (and a slack band below the capability chips). Size
the page to the content instead — 801x525 with an 8pt margin and an 18pt
panel pad — so the width hugs the 749pt rules, the height wraps the stack
in one page, and the rasterised hero is all signal with only a thin frame.
@DemchaAV DemchaAV merged commit 7e3a6dd into develop Jun 17, 2026
11 checks passed
@DemchaAV DemchaAV deleted the fix/engine-banner-crop branch June 17, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant