From 4adf20af1e587a1b273d6e8bd596e7899e8f5710 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 24 Sep 2024 12:26:48 -0700 Subject: [PATCH] Fix: hidden canvas element causes scroll bug (#7770) --- src-ui/src/styles.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src-ui/src/styles.scss b/src-ui/src/styles.scss index 412324142..c83ebd493 100644 --- a/src-ui/src/styles.scss +++ b/src-ui/src/styles.scss @@ -680,3 +680,13 @@ code { } } } + +// pdfjs +canvas.hiddenCanvasElement { + position: absolute; + left: 0; + bottom: 0; + z-index: -1; + height: 0; + width: 0; +}