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

GridPane: When moving an element to another cell in the GridPane, its spanning may need to be adjusted.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 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 moves an element to a row below its current position 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 adjust a rowspan maybe we should show a message?

            eleponn Eric Le Ponner
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: