jRange: width is innacurate depending on box model, padding and margins. Using css width instead.

This commit is contained in:
friendica
2015-04-08 21:10:47 -07:00
parent 37afc81847
commit 184f8d42ea
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@
console.log('jRange : no width found, returning');
return;
} else {
this.domNode.width(this.options.width || this.inputNode.width());
this.domNode.css('width', this.options.width || this.inputNode.width());
this.inputNode.hide();
}