Skip to content

[stable32] feat: auto-adjust PDF zoom to fit container width#6288

Merged
vitormattos merged 1 commit intostable32from
backport/6286/stable32
Dec 31, 2025
Merged

[stable32] feat: auto-adjust PDF zoom to fit container width#6288
vitormattos merged 1 commit intostable32from
backport/6286/stable32

Conversation

@backportbot-libresign
Copy link
Copy Markdown

Backport of PR #6286

Implements automatic zoom calculation to ensure PDFs fit horizontally
within the viewer container, preventing overflow.

- Calculates optimal scale based on widest page and container width
- Handles PDFs with multiple pages of different widths
- Adapts zoom on window resize
- Uses 200ms delay to avoid PDF.js render conflicts

Signed-off-by: Vitor Mattos <[email protected]>
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Dec 31, 2025
@backportbot-libresign backportbot-libresign Bot added this to the Next Patch (32) milestone Dec 31, 2025
@vitormattos vitormattos merged commit 68a7a22 into stable32 Dec 31, 2025
56 checks passed
@vitormattos vitormattos deleted the backport/6286/stable32 branch December 31, 2025 05:00
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in Roadmap Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant