min and max tick labels are inverted for vertical slider

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • fx2.0
    • Affects Version/s: fx1.3
    • Component/s: javafx

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

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

              Created:
              Updated:
              Resolved:
              Imported: