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

Slider does not snap to ticks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7u25
    • javafx
    • None
    • Windows XP sp3 32bit
      Eclipse 4.2.2 with e(fx)clipse
      javafx 2.2.25

      I created horizontal Slider in FXML, min=0, max=2, majorTick=0.5, minorTick=0
      I checked snapToTicks checkbox in scene builder, but it doesn't work
      I tried to set tick units in java and also slider.setSnapToTicks(true) but it doesn't work either.

      output of valueProperty:
      0.579059829059829
      0.5683760683760684
      0.5576923076923077
      0.5470085470085468
      0.5363247863247862
      0.5149572649572649
      0.5042735042735043
      0.4935897435897434
      0.48290598290598274
      0.46153846153846145
      0.4508547008547008
      0.4294871794871793
      0.41880341880341865
      0.39743589743589736
      0.3867521367521367

            Unassigned Unassigned
            duke J. Duke
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported: