Layouts have problems with handling NaN and Infinity values

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P5
    • 8u60
    • Affects Version/s: fx2.1
    • Component/s: javafx
    • Environment:

      2.1-b14

      I've encountered that list items has wrong layout and exceed ListView width eventually. I spent several hours finding out the cause. Weird layout stuff was caused by NaN and Infinity values set as the min/max size for node.

      See the attached example. When the value is NaN, the item exceeds list width. When the value is infinity, the component seems to be clipped correctly.

      I believe we should have some kind of protection in layout stuff instead of showing these weird things.

        1. Bug.java
          10 kB
          Alexander Kuznetcov
        2. screenshot-1.jpg
          63 kB
          Alexander Kuznetcov

            Assignee:
            Chien Yang (Inactive)
            Reporter:
            Alexander Kuznetcov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: