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

Cannot change the size of the internal controls on a ScrollBar.

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • fx1.3
    • fx1.2
    • javafx
    • JavaFX 1.2 FCS, Solaris

    Description

      The size of the internal controls for a scrollbar seem to be hard coded. There is no way to change the size either through Stylesheets or control variable.

      This makes it difficult to use the scroll bar on environments like touch screen devices where the scrollbar knob needs to be bigger.

      When this runs, the scroll bar should be same dimensions as the Rectangle, however the height of the visible portion of the scroll bar is constant.

      =====

      import javafx.scene.Group;
      import javafx.scene.paint.Color;
      import javafx.scene.shape.Rectangle;

      Stage {
          title: "ScrollBar"
          width: 600
          height: 400
          scene: Scene {
              content: [
                  Group {
                      layoutX: 10
                      layoutY: 10
                      content: [
                          Rectangle {
                              width: 500
                              height: 200
                              fill: Color.YELLOW
                          },
                          ScrollBar {
                              vertical: false
                              height: 200
                              width: 500
                          },
                      ]
                  }

              ]
          }
      }

      Attachments

        Activity

          People

            smarks Stuart Marks
            jclarke Jim Clarke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: