Skip to content

Skinning: binding via ID stops working when using a ScrollPane #170

@oova

Description

@oova

Hi,

I took the sample code for skinning a form using an FXML file from
https://github.com/dooApp/FXForm2/blob/master/samples/src/main/java/com/dooapp/fxform/samples/FXMLSkin.java

Everything worked as expected, the bean properties were shown in the form.
Then I wrapped the AnchorPane's children in a ScrollPane like this:

<AnchorPane id="AnchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/2.2">
  <children>
    <ScrollPane>
      <content>
        <Label id="firstName-form-label" layoutX="272.0" layoutY="14.0" text="Label" />
        <TextField id="firstName-form-editor" layoutX="199.0" layoutY="36.0" prefWidth="200.0" />
        <Label id="lastName-form-label" layoutX="14.0" layoutY="184.0" text="Label" />
        <TextArea id="lastName-form-editor" layoutX="79.0" layoutY="115.0" prefWidth="200.0" wrapText="true" />
        <Label id="age-form-label" layoutX="334.0" layoutY="326.0" text="Label" />
        <TextField id="age-form-editor" layoutX="362.0" layoutY="342.0" prefWidth="200.0" />
      </content>
    </ScrollPane>
  </children>
</AnchorPane>

This resulted in an empty form being shown. There seemed to be no bindings between bean properties and GUI components.

Did I make a mistake or is ScrollPane not supported at the moment?

Keep up the great work!
oova

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions