Skip to content

Commit

Permalink
Merge branch 'production' of https://github.com/huridocs/uwazi into s…
Browse files Browse the repository at this point in the history
…taging
  • Loading branch information
Zasa-san committed Nov 21, 2024
2 parents ebe7393 + be055a0 commit 577d7f7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/react/V2/Components/PDFViewer/PDFPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,17 @@ const PDFPage = ({ pdf, page, highlights }: PDFPageProps) => {
useEffect(() => {
if (pageContainerRef.current && pdfPage) {
const currentContainer = pageContainerRef.current;
const defaultViewport = pdfPage.getViewport({ scale: 1 });

const handlePlaceHolder = () => {
const defaultViewport = pdfPage.getViewport({ scale: 1 });
currentContainer.style.height = `${defaultViewport.height}px`;
};

if (isVisible) {
const defaultViewport = pdfPage.getViewport({ scale: 1 });

const pageViewer = new PDFJSViewer.PDFPageView({
container: currentContainer,
id: page,
scale: 1.1,
scale: 1,
defaultViewport,
annotationMode: 0,
eventBus: new EventBus(),
Expand Down

0 comments on commit 577d7f7

Please sign in to comment.