range: fix spring not taking range min/max into account
This commit is contained in:
parent
c6207cacd2
commit
85a381ec3e
1 changed files with 2 additions and 2 deletions
|
|
@ -245,7 +245,7 @@ module.exports = class Range extends Widget {
|
|||
horizontal:this.getProp('horizontal'),
|
||||
height:'100%',
|
||||
width:'100%',
|
||||
value:this.getProp('value').length==2?this.getProp('value')[0]:'',
|
||||
value:this.getProp('value').length==2?this.getProp('value')[0]:this.getProp('range').min,
|
||||
snap:this.getProp('snap'),
|
||||
spring:this.getProp('spring'),
|
||||
range:this.getProp('range'),
|
||||
|
|
@ -262,7 +262,7 @@ module.exports = class Range extends Widget {
|
|||
horizontal:this.getProp('horizontal'),
|
||||
height:'100%',
|
||||
width:'100%',
|
||||
value:this.getProp('value').length==2?this.getProp('value')[1]:'',
|
||||
value:this.getProp('value').length==2?this.getProp('value')[1]:this.getProp('range').max,
|
||||
snap:this.getProp('snap'),
|
||||
spring:this.getProp('spring'),
|
||||
range:this.getProp('range'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue