Merge pull request #827 from noamichael/feature-negative-slider
Slider: handle mixed-sign min/max attributes when positioning handlepull/880/head
commit
624dcd7558
|
@ -275,9 +275,7 @@ export default {
|
||||||
return {'bottom': this.handlePosition + '%'};
|
return {'bottom': this.handlePosition + '%'};
|
||||||
},
|
},
|
||||||
handlePosition() {
|
handlePosition() {
|
||||||
if (this.modelValue === 0)
|
if (this.modelValue < this.min)
|
||||||
return 0;
|
|
||||||
else if (this.modelValue < this.min)
|
|
||||||
return 0;
|
return 0;
|
||||||
else if (this.modelValue > this.max)
|
else if (this.modelValue > this.max)
|
||||||
return 100;
|
return 100;
|
||||||
|
|
Loading…
Reference in New Issue