|
@ -189,6 +189,7 @@ RangeItem.prototype.repositionX = function(limitSize) { |
|
|
this.left = start; |
|
|
this.left = start; |
|
|
this.width = boxWidth; |
|
|
this.width = boxWidth; |
|
|
contentWidth = Math.min(end - start - 2 * this.options.padding, this.props.content.width); |
|
|
contentWidth = Math.min(end - start - 2 * this.options.padding, this.props.content.width); |
|
|
|
|
|
// TODO: remove the need for options.padding. it's terrible.
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.dom.box.style.left = this.left + 'px'; |
|
|
this.dom.box.style.left = this.left + 'px'; |
|
@ -219,9 +220,7 @@ RangeItem.prototype.repositionX = function(limitSize) { |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
if (start < 0) { |
|
|
if (start < 0) { |
|
|
contentLeft = Math.min(-start, |
|
|
|
|
|
(end - start - contentWidth - 2 * this.options.padding)); |
|
|
|
|
|
// TODO: remove the need for options.padding. it's terrible.
|
|
|
|
|
|
|
|
|
contentLeft = -start; |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
contentLeft = 0; |
|
|
contentLeft = 0; |
|
|