diff --git a/jquery.range.js b/jquery.range.js index 0850464..d97f0d7 100644 --- a/jquery.range.js +++ b/jquery.range.js @@ -277,7 +277,7 @@ var width = label.html(text).width(), left = position - width / 2; - left = Math.min(Math.max(left, 0), this.options.width - width); + left = Math.min(Math.max(left, 0), this.domNode.width() - width); label[animate ? 'animate' : 'css']({ left: left });