diff --git a/CHANGELOG.md b/CHANGELOG.md index c7c3bce47ed..a9c3b0c1f44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,6 +52,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv - We fixed an issue where the CrossRef field did not work if autocompletion was disabled [#8145](https://github.com/JabRef/jabref/issues/8145) - We fixed an issue where exporting`@electronic` and `@online` entry types to the Office XMl would duplicate the field `title` [#10807](https://github.com/JabRef/jabref/issues/10807) - We fixed an issue where the `CommentsTab` was not properly formatted when the `defaultOwner` contained capital or special letters. [#10870](https://github.com/JabRef/jabref/issues/10870) +- We fixed an issue where the Document Viewer would show the PDF in only half the window when maximized. [#10934](https://github.com/JabRef/jabref/issues/10934) ### Removed diff --git a/src/main/java/org/jabref/gui/documentviewer/DocumentViewerView.java b/src/main/java/org/jabref/gui/documentviewer/DocumentViewerView.java index 17a428b0c95..e82f5751ea2 100644 --- a/src/main/java/org/jabref/gui/documentviewer/DocumentViewerView.java +++ b/src/main/java/org/jabref/gui/documentviewer/DocumentViewerView.java @@ -47,7 +47,7 @@ public DocumentViewerView() { ViewLoader.view(this) .load() - .setAsContent(this.getDialogPane()); + .setAsDialogPane(this); // Remove button bar at bottom, but add close button to keep the dialog closable by clicking the "x" window symbol getDialogPane().getButtonTypes().add(ButtonType.CLOSE);