Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Right to Left Language Issue #57

Open
dustinsmith1024 opened this issue Mar 8, 2012 · 0 comments
Open

Right to Left Language Issue #57

dustinsmith1024 opened this issue Mar 8, 2012 · 0 comments

Comments

@dustinsmith1024
Copy link

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]);
} 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant