mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-14 14:26:43 -04:00
为弹窗文本添加平滑滚动 (#4201)
This commit is contained in:
parent
77dc5dbe06
commit
72ffbb4176
@ -108,6 +108,7 @@ public final class MessageDialogPane extends HBox {
|
|||||||
content.getChildren().setAll(textFlow);
|
content.getChildren().setAll(textFlow);
|
||||||
else {
|
else {
|
||||||
ScrollPane scrollPane = new ScrollPane(textFlow);
|
ScrollPane scrollPane = new ScrollPane(textFlow);
|
||||||
|
FXUtils.smoothScrolling(scrollPane);
|
||||||
scrollPane.setPrefHeight(350);
|
scrollPane.setPrefHeight(350);
|
||||||
VBox.setVgrow(scrollPane, Priority.ALWAYS);
|
VBox.setVgrow(scrollPane, Priority.ALWAYS);
|
||||||
scrollPane.setFitToWidth(true);
|
scrollPane.setFitToWidth(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user