I'm trying to set a padding to a textfield in JavaFX (using Java 8\_192).
I've got a simple VBox with 3 TextFields in it. If i manually set the padding on the first TextField, the other TextFields are somehow resetting their padding to 0 when i focus them.

The first TextField has a manual padding:

[![screenshot-1](https://i.stack.imgur.com/kjrqf.png)](https://i.stack.imgur.com/kjrqf.png)

When focusing the second (or the third) TextField, they get a padding of 0:

[![enter image description here](https://i.stack.imgur.com/wwQZA.png)](https://i.stack.imgur.com/wwQZA.png)

If i focus something different, their padding will be reset to the usual padding set by javafx (4, 7, 4, 7). The strange thing is, if i set the padding of `tf2` instead of `tf1`, there won't be any problem.
Also, if i manually set the padding of every TextField, they won't be reset to 0. But this obviously can't be an answer...

My code:

```
public class Main extends Application {
    @Override
    public void start(Stage primaryStage) {
        VBox vbox = new VBox();
        vbox.setSpacing(10);
        vbox.setPadding(new Insets(10, 10, 10, 10));

        TextField tf1 = new TextField();
        TextField tf2 = new TextField();
        TextField tf3 = new TextField();

        vbox.getChildren().addAll(tf1);
        vbox.getChildren().addAll(tf2);
        vbox.getChildren().addAll(tf3);

        tf1.setPadding(new Insets(7, 7, 7, 7));
        // Setting the padding of tf2 instead of tf1 works

        Scene scene = new Scene(vbox, 250, 150);
        primaryStage.setScene(scene);
        primaryStage.show();
    }

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

```

Why is the padding being reset after focus, only when setting the padding to the first TextField i add to the vbox?