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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • fx1.3
    • fx1.2
    • javafx
    • Windows XP, Vista / Java1.6.0_13, Marina b06


      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 ----------------------------------------------------

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

              Created:
              Updated:
              Resolved:
              Imported: