Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8122862

GridPane: when setting the index of an element in the inspector, its spanning may need to be changed too

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7u6
    • 7u6
    • javafx
    • None

      Consider the following case:

      Create a grid with two rows.
      Place a button in the first row.
      Increase the row span of the button to 2
      Move the button in the second row: a third 'ghost' row appear.

      This is conform to the GridPane API/spec - however the visual effect is strange.

      In all cases we should try and avoid a new row/column being unexpectedly created in the GridPane.

      If the user adds a rowspan that exceeds the remaining number of rows then the rowspan value should be rejected.

      If the user increases a row index and the selected child has a row span that exceeds the remaining number of rows then the rowspan value should be decreased accordingly.

      When we reject a rowspan or row index value maybe we should show a message?

            dfuchs Daniel Fuchs
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: