kendo-react
kendo-react copied to clipboard
[Bug][PdfViewer] Inconsistent width can cause horizontal scrollbar in some cases
I'm submitting a...
- Bug report
Current behavior
If the PDF Viewer component is inside <div style="display: flex">
, for some PDFs the width for <div>
elements is inconsistent, which can cause horizontal scrollbar to appear because of 1 px difference, see pictures
Expected behavior
The horizontal scrollbar shouldn't be visible if there's enough space. The .k-page
element should have same width as .k-text-layer
, so 841.89pt
instead of 841
Minimal reproduction of the problem with instructions
https://codesandbox.io/p/sandbox/jovial-brahmagupta-kg4gps
When trying to replicate, open the Preview window in separate tab
Environment
Package versions: latest
Browser:
- Chrome (desktop) version 124.0.6367.60 (Official Build) (64-bit)
It looks like a bug indeed, thank you for reporting it.
If you observe other issues or you have other questions regarding our components or their specific configuration you can also consider submitting a support ticket on our support platform where we do our best to provide a more advanced dedicated support.