ScrollPane doesn't take scrollbar width into account

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P4
    • 8u20
    • Affects Version/s: fx2.1, 7u6
    • Component/s: javafx
    • Environment:

      javafx-sdk2.2.0-beta-b06

      Run the attached app. It has two ScrollPanes. One has it viewportPrefWidth bound, second has its prefWidth bound. The result is almost the same. Keypoints are:
      1. setting viewportPrefWidth to content width doesn't allow it to fit into view due to scroll bar width
      2. horizontal scrollbar doesn't appear in the first ScrollPane however the content is not fully visible.

        1. Bug.java
          4 kB
          Alexander Kuznetcov
        2. screenshot-1.jpg
          23 kB
          Alexander Kuznetcov

            Assignee:
            David Grieve
            Reporter:
            Alexander Kuznetcov (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: