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

Style -fx-wrap-text worked only when set minWidth to control

    XMLWordPrintable

Details

    Description

      This is a sizing issue and is not related to the wrapText property.

      The problem is that the computed value of minWidth equals the computed value of prefWidth, which wins over the smaller value given to setMaxWidth().

      The computed minWidth should be based on that of LabeledSkinBase instead.

      See also the discussion in RT-18309 about why a computed min value wins over a set max value.

      Attachments

        Issue Links

          Activity

            People

              leifs Leif Samuelsson (Inactive)
              slugovoy Sergey Lugovoy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: