Merge branch 'slider_minmax'

This commit is contained in:
Mathieu Virbel 2012-09-25 16:47:23 +02:00
commit 0d4e5a2671
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class Slider(Widget):
if step == 0:
self.value = val
else:
self.value = min(round((val - vmin) / step) * step, self.max)
self.value = min(round((val - vmin) / step) * step, self.max) + vmin
value_normalized = AliasProperty(get_norm_value, set_norm_value,
bind=('value', 'min', 'max', 'step'))
'''Normalized value inside the :data:`range` (min/max) to 0-1 range::