完善提示框位置
This commit is contained in:
parent
c547a29b46
commit
c63066e26e
@ -94,8 +94,8 @@ public class RootManager {
|
||||
msg.getStyleClass().addAll(Styles.ACCENT, Styles.ELEVATED_1);
|
||||
msg.setPrefHeight(Region.USE_PREF_SIZE);
|
||||
msg.setMaxHeight(Region.USE_PREF_SIZE);
|
||||
StackPane.setAlignment(msg, Pos.TOP_RIGHT);
|
||||
StackPane.setMargin(msg, new Insets(10, 10, 0, 0));
|
||||
StackPane.setAlignment(msg, Pos.BOTTOM_RIGHT);
|
||||
StackPane.setMargin(msg, new Insets(5, 10, 35, 0));
|
||||
|
||||
msg.setOnClose(e -> {
|
||||
var out = Animations.slideOutUp(msg, Duration.millis(250));
|
||||
@ -103,7 +103,6 @@ public class RootManager {
|
||||
out.playFromStart();
|
||||
});
|
||||
|
||||
|
||||
var in = Animations.slideInDown(msg, Duration.millis(250));
|
||||
if (!stackPane.getChildren().contains(msg)) {
|
||||
stackPane.getChildren().add(msg);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user