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

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

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx1.2
    • Fix Version/s: fx1.3
    • Component/s: javafx
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: