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

ScrollPane: no immediate effect changing fitWidth/fitHeight

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • jfx24
    • jfx23
    • javafx
    • None
    • b14

      It looks like changing fitWidth/fitHeight properties requires forcing layout to take effect.

      To reproduce:
      - run the attached code example.
      - toggle either check box
      - notice how the scroll pane does not get updated
      - resize the window, observe the update

      Expected: the layout should change when toggling either check box.

        1. Screenshot 2024-10-02 at 12.22.37.png
          240 kB
          Andy Goryachev
        2. Screenshot 2024-10-02 at 12.23.11.png
          252 kB
          Andy Goryachev
        3. ScrollPane_FitTo_8341440.java
          1 kB
          Andy Goryachev

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

              Created:
              Updated:
              Resolved: