-
Bug
-
Resolution: Fixed
-
P4
-
fx2.0.2
-
Java: 1.7.0_09; Java HotSpot(TM) 64-Bit Server VM 23.5-b02
System: Linux version 3.5.0-18-generic running on amd64; UTF-8; de_CH (nb)
It should be possible to pass constants like Region.USE_PREF_SIZE to properties like ColumnConstraints.minWidth without resorting to JavaScript:
<GridPane >
<fx:script>
var USE_PREF_SIZE = Packages.javafx.scene.layout.Region.USE_PREF_SIZE;
</fx:script>
<columnConstraints>
<ColumnConstraints minWidth="$USE_PREF_SIZE" maxWidth="$USE_PREF_SIZE" hgrow="NEVER"/>
...
</columnConstraints>
....
<GridPane >
<fx:script>
var USE_PREF_SIZE = Packages.javafx.scene.layout.Region.USE_PREF_SIZE;
</fx:script>
<columnConstraints>
<ColumnConstraints minWidth="$USE_PREF_SIZE" maxWidth="$USE_PREF_SIZE" hgrow="NEVER"/>
...
</columnConstraints>
....