Skip to content

Slider.setMin(value) throws Slider$ValueOutOfBoundsException #6346

Description

@vaadin-bot

Originally by @samie


This does not work:

Slider slider = new Slider();
slider.setMin(500);
slider.setMax(1500);

Also this does not work:

Slider slider = new Slider(500,1500, 10);

but this does:

Slider slider = new Slider();
slider.setMax(1500);
slider.setMin(500);

Apparently there is something wrong how the value is updated when min/max are set.

Bonus: The ValueOutOfBoundsException should display some min/max information to help user to spot the errors.


Imported from https://dev.vaadin.com/ issue #16776

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions