kendo-react icon indicating copy to clipboard operation
kendo-react copied to clipboard

[Bug][PdfViewer] Inconsistent width can cause horizontal scrollbar in some cases

Open kubop opened this issue 10 months ago • 1 comments

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 image image

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 image

Environment

Package versions: latest

Browser:

  • Chrome (desktop) version 124.0.6367.60 (Official Build) (64-bit)

kubop avatar Apr 23 '24 11:04 kubop

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.

zdravkov avatar Apr 29 '24 06:04 zdravkov