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