Skip to content

Migpane problem with size #77

@Hugolarson

Description

@Hugolarson

Hello,
Having used Mig for Swing for many and now am transitioning to JavaFX and have discovered a strange issue how nodes are displayed on differnet computers.

Consider this code;

`public class MigPaneMain extends Application {

@Override
public void start (Stage stage) throws Exception {
        MigPane root = new MigPane();
        Scene scene = new Scene(root);

        Label lbl = new Label("label");
        TextField tf = new TextField();
        VBox box = new VBox(tf, lbl);
        
        root.add(box, "w 200!");
        
        //Button b = new Button("Hello");
        //root.getChildren().add(b);

        stage.setScene(scene);
        stage.setTitle("FX");
        stage.setWidth(1000);
        stage.setHeight(500);
        stage.show();
}

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

}`
Both computer Windows 10. Java-8_181. MipPane. 5.3.

Computer 1. w 200! is not respected

image

Computer 2

image

Let me know if you need debug information.

Br,
Hugo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions