From b52c99c880d8f8d1671c9493e0a68a5335a00086 Mon Sep 17 00:00:00 2001 From: Sebastian Balzer <120449829+cardionaut@users.noreply.github.com> Date: Sat, 2 Mar 2024 23:24:24 +0100 Subject: [PATCH] Fix "Document Viewer: PDF shows only in half of the window size" #10934 (#10961) * Fix "Document Viewer: PDF shows only in half of the window size" #10934 * move changelog to unreleased --- CHANGELOG.md | 1 + .../java/org/jabref/gui/documentviewer/DocumentViewerView.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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);