为弹窗文本添加平滑滚动 (#4201)

This commit is contained in:
辞庐 2025-08-05 22:50:47 +08:00 committed by GitHub
parent 77dc5dbe06
commit 72ffbb4176
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -108,6 +108,7 @@ public final class MessageDialogPane extends HBox {
content.getChildren().setAll(textFlow);
else {
ScrollPane scrollPane = new ScrollPane(textFlow);
FXUtils.smoothScrolling(scrollPane);
scrollPane.setPrefHeight(350);
VBox.setVgrow(scrollPane, Priority.ALWAYS);
scrollPane.setFitToWidth(true);