fgnass/spin.js — Issue #57: Right to Left Language Issue
Author: dustinsmith1024
Created: 2012-03-08 22:32:46+00:00
State: open

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]);
}