Repository navigation
Conversation
|
No actionable comments were generated in the recent review. WalkthroughThe presenter PDF export callback now awaits Estimated code review effort: 2 (Simple) | ~8 minutes Severity of issue fixed: Medium Merge Risk:
|
8ad0f85 to
79669a4
Compare
79669a4 to
bbdb2a0
Compare
|
@AntoLC sorry for bumping, but is there anything missing from my side that this pr is not reviewed? |
When exporting presenter slides to PDF from browser fullscreen, Firefox renders the native print dialog as a miniature in the top-left corner due to a viewport clipping conflict with fullscreen. This commit exits fullscreen mode before triggering presenter print export so the print dialog renders at normal dimensions and position. This behavior matches other browsers like Chrome and Edge. Fixes suitenumerique#2897 Signed-off-by: phaast <abednarek224@gmail.com>
bbdb2a0 to
53af629
Compare
Purpose
Fixes #2897
When presenting in fullscreen and exporting slides to PDF, the browser's native print dialog renders as a tiny thumbnail in the top-left corner on Firefox. The preview is squished and only displays the "Save to PDF" destination and basic buttons, leaving no space to adjust layout, margins, or page settings.
When exiting fullscreen while remaining in presentation mode, the print dialog opens normally: centered, full size, and with the complete preview and print options available.
Proposal
This behavior is a known Firefox quirk where native browser dialogs are constrained by the active fullscreen context. There is no control over the geometry of this native dialog while fullscreen is active.
Browsers like Chromium and Edge automatically exit browser fullscreen when
window.print()is triggered. This PR adopts the same behavior for consistency:await exit()fromuseBrowserFullscreenbefore triggeringprintPresenterSlides(slides)inexportPdf.External contributions
Thank you for your contribution! 🎉
Please ensure the following items are checked before submitting your pull request:
General requirements
Skip the checkbox below 👇 if you're fixing an issue or adding documentation
CI requirements
git commit --signoff(DCO compliance)git commit -S)<gitmoji>(type) title description## [Unreleased]section (if noticeable change)AI requirements
Skip the checkboxes below 👇 If you didn't use AI for your contribution