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

[TableView, TreeTableView] Auto sizing of TableColumn should take into account header text / graphic

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u20
    • 8, 8u20
    • javafx
    • SDK 1.8

      It seems to me that one desired behavior of the TableColumn auto-sizing of width should be to set the width to the maximum of widest item and header width, The current behavior seems to be the following:

      - Default: set width to that of widest item, clip header if wider
      - if minWidth is set to any value (e.g. to width of header), item size no longer considered and is clipped if longer than minWidth

      So the only way to get the desired behavior is to manually determine the widest item vs width of header.

            jgiles Jonathan Giles
            yorenjfx Yair Oren (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: