Skip to content

Commit

Permalink
fix news refresh adding at index 1 instead of 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharqosity committed Feb 17, 2017
1 parent e5dfcd8 commit abeb036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/WHS_planner/News/ui/NewsUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ private void addCard(Label description, Hyperlink hyperlink, ImageView image, bo
vBox.getStyleClass().setAll("news-card");
VBox.setMargin(vBox, new Insets(10, 10, 10, 10));
Platform.runLater(() -> {
cardView.getChildren().add(1, vBox);
cardView.getChildren().add(0, vBox);
});
}

Expand Down

0 comments on commit abeb036

Please sign in to comment.