From e382372427b54926a2907838dc8dfcdaf5ab3ae4 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Mon, 17 Jun 2024 22:16:27 +0200 Subject: [PATCH] Add hiddenCanvasElement styles Closes #1815 --- packages/react-pdf/src/Page/TextLayer.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/react-pdf/src/Page/TextLayer.css b/packages/react-pdf/src/Page/TextLayer.css index 592ec1c4b..727c21127 100644 --- a/packages/react-pdf/src/Page/TextLayer.css +++ b/packages/react-pdf/src/Page/TextLayer.css @@ -108,3 +108,12 @@ .textLayer .endOfContent.active { top: 0; } + +.hiddenCanvasElement { + position: absolute; + top: 0; + left: 0; + width: 0; + height: 0; + display: none; +}