From 441308d24557448c23714106b0bf9f0d22faabe6 Mon Sep 17 00:00:00 2001 From: InAnYan Date: Wed, 7 Aug 2024 13:39:49 +0300 Subject: [PATCH] Fix for https://github.com/InAnYan/jabref/issues/125 --- .../ai/components/privacynotice/PrivacyNoticeComponent.fxml | 4 +--- .../ai/components/privacynotice/PrivacyNoticeComponent.java | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/jabref/gui/ai/components/privacynotice/PrivacyNoticeComponent.fxml b/src/main/java/org/jabref/gui/ai/components/privacynotice/PrivacyNoticeComponent.fxml index 2017eac9fd9..4549ca9641c 100644 --- a/src/main/java/org/jabref/gui/ai/components/privacynotice/PrivacyNoticeComponent.fxml +++ b/src/main/java/org/jabref/gui/ai/components/privacynotice/PrivacyNoticeComponent.fxml @@ -5,8 +5,7 @@ - - + @@ -66,5 +65,4 @@ - diff --git a/src/main/java/org/jabref/gui/ai/components/privacynotice/PrivacyNoticeComponent.java b/src/main/java/org/jabref/gui/ai/components/privacynotice/PrivacyNoticeComponent.java index e1db9dcebc1..8778961b99c 100644 --- a/src/main/java/org/jabref/gui/ai/components/privacynotice/PrivacyNoticeComponent.java +++ b/src/main/java/org/jabref/gui/ai/components/privacynotice/PrivacyNoticeComponent.java @@ -4,6 +4,7 @@ import javafx.fxml.FXML; import javafx.scene.control.Hyperlink; +import javafx.scene.control.ScrollPane; import javafx.scene.layout.Pane; import javafx.scene.text.Text; import javafx.scene.text.TextFlow; @@ -17,7 +18,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class PrivacyNoticeComponent extends Pane { +public class PrivacyNoticeComponent extends ScrollPane { private final Logger LOGGER = LoggerFactory.getLogger(PrivacyNoticeComponent.class); @FXML private TextFlow openAiPrivacyTextFlow;