Skip to content

Commit

Permalink
Notification to not show ellipsis. Title still needs fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
torakiki committed May 17, 2017
1 parent 73f3c02 commit 27ec45d
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
import javafx.scene.Node;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.StackPane;
import javafx.scene.layout.VBox;
import javafx.util.Duration;

/**
Expand All @@ -44,7 +44,7 @@
* @author Andrea Vacondio
*
*/
class Notification extends BorderPane {
class Notification extends VBox {

private FadeTransition fade = new FadeTransition(Duration.millis(500), this);

Expand All @@ -61,9 +61,7 @@ class Notification extends BorderPane {
titleLabel.getStyleClass().add("notification-title");
StackPane top = new StackPane(titleLabel, closeButton);
top.setAlignment(Pos.TOP_RIGHT);
BorderPane.setAlignment(content, Pos.CENTER_LEFT);
setTop(top);
setCenter(content);
getChildren().addAll(top, content);
setOpacity(0);
setOnMouseEntered(e -> {
fade.stop();
Expand Down

0 comments on commit 27ec45d

Please sign in to comment.