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

min and max tick labels are inverted for vertical slider

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • fx2.0
    • fx1.3
    • javafx

    Description

      build: soma
      Slider control mix up min and max values if vertical set to true - thick mark shows a number but the value is from oposit side of scale.
      If vertical is false (default) everything works properly

      try to insert this slider to a stage to see:

       def slider:Slider=Slider {
                              vertical:true
                              translateX:bind rect.x+45
                              translateY:bind rect.y+20
                              min:0.5
                              max:1.5
                              value:1.0
                              showTickMarks: true
                              showTickLabels: true
                              majorTickUnit:bind (slider.max-slider.min)
                              minorTickCount:4
                              labelFormatter: function(num) { "{Math.round(num*100)}%" }
                              layoutInfo: LayoutInfo {
                                                      height:110
                                                      width:10
                                                      }
                              onMouseReleased:function(e) {println(slider.value);slider.max=slider.value*1.5;slider.min=slider.value*0.5}
                          };

      Attachments

        Activity

          People

            psomashe Parvathi Somashekar (Inactive)
            lwaldmannjfx Lukas Waldmann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: