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

Region pref computation incorrect when contentBias is VERTICAL or HORIZONTAL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 9
    • 7u6
    • javafx
    • None

      computeChildPrefAreaHeight and computeChildPrefAreaWidth are incorrect in the case that content bias is set and the "width" is not -1. They ask the child "give me your minimum width based on -1, your pref based on the width, and your max based on -1" (for example). However this is an apples to oranges comparison, because it then takes these three values and does a boundedSize(min, pref, max) on them. However the result of a -1 lookup of minimum width might be "100" for example while a pref width with (100) as the passed width might be 10 for example. But instead of coming out at the right pref height (10), it is bumped up to 100 due to the boundedSize call.

            msladecek Martin Sládeček
            rbair Richard Bair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: