Slider: css "-fx-major-tick-unit" doesn't work

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • fx2.0
    • Affects Version/s: fx2.0
    • Component/s: javafx
    • Environment:

      java6
      windows 7
      fx b39

      To reproduce run following code

      import javafx.application.Application;
      import javafx.builders.SliderBuilder;
      import javafx.scene.Parent;
      import javafx.scene.Scene;
      import javafx.scene.layout.VBox;
      import javafx.stage.Stage;

      public class SliderTest extends Application {

          public static void main(String[] args) {
              launch(args);
          }

          private Parent getContent() {
              VBox list = new VBox(10);
              list.getChildren().add(SliderBuilder.create().min(0).max(100).value(25)
                      .style(
      // "-fx-minor-tick-count: 5;" +
                       "-fx-major-tick-unit: 50;"
                      + "-fx-show-tick-marks: true;").build());
              return list;
          }

          public void start(Stage stage) {
              stage.setX(100);
              stage.setY(100);
              Scene scene = new Scene(getContent());
              stage.setScene(scene);
              stage.setVisible(true);
          }
      }

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

              Created:
              Updated:
              Resolved:
              Imported: