spin.js icon indicating copy to clipboard operation
spin.js copied to clipboard

Right to Left Language Issue

Open dustinsmith1024 opened this issue 13 years ago • 0 comments

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

dustinsmith1024 avatar Mar 08 '12 22:03 dustinsmith1024