Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangeSlider - high thumb & rangeBar missing #1499

Open
qtran opened this issue May 24, 2023 · 0 comments
Open

RangeSlider - high thumb & rangeBar missing #1499

qtran opened this issue May 24, 2023 · 0 comments

Comments

@qtran
Copy link

qtran commented May 24, 2023

There is a bug in RangeSlider that when you change the tick marks / labels visibility the high thumb & rangeBar missing
How to reproduce:

public class TestApplication extends Application {

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

    @Override
    public void start(final Stage primaryStage) {
	primaryStage.setTitle("TestApplication");

	final RangeSlider slider = new RangeSlider(0, 10, 2, 8);
	final Button btn = new Button();
	btn.setText("Toggle show tick labels'");
	btn.setOnAction(event -> slider.setShowTickLabels(!slider.isShowTickLabels()));

	final VBox root = new VBox(20);
	root.getChildren().addAll(slider, btn);
	root.setAlignment(Pos.CENTER);

	primaryStage.setScene(new Scene(root, 300, 250));
	primaryStage.show();
    }
}

Tested with 11.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant