Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FXGraph does not support includes attributes #1

Open
JohnDBodkin opened this issue Apr 24, 2017 · 0 comments
Open

FXGraph does not support includes attributes #1

JohnDBodkin opened this issue Apr 24, 2017 · 0 comments

Comments

@JohnDBodkin
Copy link

https://www.eclipse.org/forums/index.php/t/1085749/

Using the latest e(fx)clipse) I created a plugin that has an FXGraph that creates a button.
component MyButton {
Button id myButton {
maxWidth : const Double#POSITIVE_INFINITY,
mnemonicParsing : false
}
}

In a different plugin I create another FXGraph that includes the button into an HBox but the button will not grow horizontally to fill the entire width.
...
HBox {
padding : Insets {
bottom : 5.0,
left : 5.0,
right : 5.0,
top : 10.0
},
spacing : 2.0,
alignment : "CENTER",
children : [
include MyButton as myBtn
]
}
...

The above FXGraph will generate an FXML that looks like:
...





<fx:include fx:id="myBtn" source="MyButton.fxml" />

...

Inside the FXML I can add to the <fx:include /> HBox.hgrow="ALWAYS" and get the desired result.
...





<fx:include fx:id="myBtn" source="MyButton.fxml" HBox.hgrow="ALWAYS"/>


...

@tomsontom tomsontom self-assigned this Jun 13, 2017
@tomsontom tomsontom added this to the 3.1.0 milestone Jun 13, 2017
@tomsontom tomsontom removed this from the 3.1.0 milestone Nov 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants