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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8, 8u20
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:
    • Environment:

      SDK 1.8

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: