Skip to content

Commit

Permalink
ZoomMode changed to FitInView
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyre221 committed Apr 1, 2024
1 parent 2b3703f commit b37b58b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion document_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(self, parent=None, app=None):
#creates the view
self.pdf_view = QPdfView(self)
self.pdf_view.setDocument(self.document)
self.pdf_view.setZoomMode(QPdfView.ZoomMode.FitToWidth)
self.pdf_view.setZoomMode(QPdfView.ZoomMode.FitInView)
self.pdf_view.setPageMode(QPdfView.PageMode.MultiPage)
self.pdf_view.verticalScrollBar().setSingleStep(25)
self.pdf_view.verticalScrollBar().setPageStep(1)
Expand Down

0 comments on commit b37b58b

Please sign in to comment.