spin.js
spin.js copied to clipboard
Right to Left Language Issue
Trying to use on a site that supports right-to-left languages and the automatic positioning is a bit off.
To fix I am just setting the 'left' to be a negative value of what it should be. Not sure what the 'real' fix could be or if one is really needed. However it would be nice to just use the default centering. I can get into the code more if I have time.
if ($("html").attr("dir")==='rtl') {
//Flip the spinner for RTL languages
spinner = new Spinner({ left: -301, top: 50 }).spin($("#scheduling-results")[0]);
}else{
spinner = new Spinner({ left: 301, top: 50 }).spin($("#scheduling-results")[0]);
}