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

TitledPane: prefWidth/maxWidth properties have no effect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx24
    • javafx
    • None

      The application should be able to use prefWidth and maxWidth properties to control the width of the TitledPane, but it looks like the control ignores those and instead bases its size on the title text:

      - the minimum width is set to the title label preferred width
      - title label is not truncated when the available width is less than the title label preferred width
      - maxWidth is ignored, instead the title label preferred width is used as the max width
      - prefWidth is ignored completely

      Expected behavior:
      - all the properties related to width in Labeled (which TitledPane extends) should apply to the title label (and to the content area when expanded).

            angorya Andy Goryachev
            angorya Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: