</BUG>
double fontSize = size * 0.3;
timeText.setFont(Fonts.latoRegular(fontSize));
timeText.setText(timeFormatter.format(tile.getTime()));
Helper.adjustTextSize(timeText, maxWidth, fontSize);
<BUG>timeText.setX((size - timeText.getLayoutBounds().getWidth()) * 0.5);

timeText.setY(size * 0.4);

maxWidth = size * 0.9;</BUG>
fontSize = size * 0.1;

tile.timeProperty().removeListener(timeListener);
}
super.dispose();
}
@Override protected void resizeDynamicText() {
double maxWidth = width - size * 0.1;
double fontSize = size * 0.3;
timeText.setFont(Fonts.latoRegular(fontSize));
timeText.setText(timeFormatter.format(tile.getTime()));
Helper.adjustTextSize(timeText, maxWidth, fontSize);
timeText.setX((width - timeText.getLayoutBounds().getWidth()) * 0.5);
timeText.setY(height * 0.4);
fontSize = size * 0.1;
