]> source.dussan.org Git - vaadin-framework.git/commit
Ensure that slider min is always smaller or equal to max. (#16776)
authorSauli Tähkäpää <sauli@vaadin.com>
Wed, 25 Feb 2015 14:54:59 +0000 (16:54 +0200)
committerVaadin Code Review <review@vaadin.com>
Fri, 27 Feb 2015 16:28:43 +0000 (16:28 +0000)
commitf0a04197be3b536b23889bcce3178962b5e10733
tree24e323e9f07c3eaedf1e7de7a64775a283db36d7
parentc9586c93b93987d9b5942c38ef0b536c091092a5
Ensure that slider min is always smaller or equal to max. (#16776)

- Set slider min to max if max is being set to a smaller value than min,
and vice-versa.
- Set also an informative message to Slider.ValueOutOfBoundsException.

Change-Id: I06b6b05dd0ef2c1fb862cf4acc7df3e235db59ba
server/src/com/vaadin/ui/Slider.java
server/tests/src/com/vaadin/tests/server/component/slider/SliderTest.java