I've encountered a very strange set of circumstances with text wrapping and centered alignment in a JavaFX label. I'm sure I'm doing something wrong or ill-advised, but I cannot seem to figure out what I'm doing wrong. 

Basically, I'm attempting to put a title over a tile pane, and have that title be centered. Also, when the window is resized, I'd like the title to wrap. The strangeness comes in when the title is not wrapped (e.g.: one line), it isn't centered any more. As soon as it wraps, it centers again. Here's some sample code that produces the effect:

```
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.layout.TilePane;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

import org.apache.commons.lang.RandomStringUtils;
public class Foo extends Application
{
    @Override
    public void start(Stage primaryStage) throws Exception
    {
        TilePane panel = new TilePane();
        panel.setTileAlignment(Pos.CENTER_LEFT);

        for (int i = 0; i < 25; i++)
        {
            panel.getChildren().add(new Label(RandomStringUtils.randomAlphabetic(10)));
        }

        Label title = new Label("Lorem ipsum dolor sit amet, consectetur adipiscing elit");
        title.setStyle("-fx-font-size: 16; -fx-font-weight: bold; -fx-wrap-text:true; -fx-text-alignment: center -fx-border-color:black;");
        title.minWidthProperty().bind(Bindings.add(-30, primaryStage.widthProperty()));
        title.setTextAlignment(TextAlignment.CENTER);

        VBox box = new VBox(title, panel);
        box.setPadding(new Insets(10));

        primaryStage.setScene(new Scene(box, 400, 400));
        primaryStage.show();

    }

    public static void main(String[] args)
    {
        launch(args);
    }
}

```

Here's a screenshot of what I'm seeing. In the first one, the bold line on top is centered and wrapped. In the second one, the bold line on top is not wrapped, and is left-aligned.

[![wrapped and centered](https://i.stack.imgur.com/yGDid.png)](https://i.stack.imgur.com/yGDid.png)
[![not wrapped and not centered](https://i.stack.imgur.com/QMW3m.png)](https://i.stack.imgur.com/QMW3m.png)