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

ScrollBar height and width cannot be set by specifying a value into the attributes

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: fx1.2
    • Fix Version/s: fx1.3
    • Component/s: javafx
    • Environment:

      Windows XP, Vista / Java1.6.0_13, Marina b06

      Description


      Compile and run the below code snippet, try to change the value of the width attribute for the ScrollBar.

      If the value of the width is set to some big number, the ScrollBar just disappears !! (say with width: 50)

      (see attachment please)


      ---------------------------------------------- Code Starts ----------------------------------------------------

      import javafx.scene.control.ScrollBar;
      import javafx.scene.Scene;
      import javafx.stage.Stage;


       var scrollBar: ScrollBar = ScrollBar{
           translateX: 20
           translateY: 10
           height: 200
           width: 0
           vertical: true
       }

       
      Stage {
          title: "Simple ScrollBar"
          width: 150
          height: 350
          scene: Scene {
              content: scrollBar
              }
      }

      ---------------------------------------------- Code Ends ----------------------------------------------------

        Attachments

          Activity

            People

            • Assignee:
              esubramasunw Elancheran Subramanian (Inactive)
              Reporter:
              snathsunw Subrata Nath (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: