Skip to content

Commit

Permalink
Update PdfViewer.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
Socvest authored Dec 7, 2024
1 parent 893516c commit 9a6313f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion streamlit_pdf_viewer/frontend/src/PdfViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default {
canvas.id = `canvas_page_${pageNumber}`;
canvas.height = viewport.height * ratio + props.args.pages_vertical_spacing;
canvas.width = viewport.width * ratio;
canvas.style.width = maxWidth.value + 'px'; // viewport.width + 'px';
canvas.style.width = viewport.width + 'px';
canvas.style.height = viewport.height + 'px';
canvas.style.display = "block";
canvas.style.marginBottom = `${props.args.pages_vertical_spacing}px`;
Expand Down

0 comments on commit 9a6313f

Please sign in to comment.