Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uwazi",
"version": "1.191.4",
"version": "1.191.5",
"description": "Uwazi is a free, open-source solution for organising, analysing and publishing your documents.",
"keywords": [
"react"
Expand Down
Loading