|
|
@ -189,6 +189,7 @@ RangeItem.prototype.repositionX = function(limitSize) { |
|
|
|
this.left = start; |
|
|
|
this.width = boxWidth; |
|
|
|
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'; |
|
|
@ -219,9 +220,7 @@ RangeItem.prototype.repositionX = function(limitSize) { |
|
|
|
} |
|
|
|
else { |
|
|
|
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 { |
|
|
|
contentLeft = 0; |
|
|
|