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

Add 'right' css options for use with rtl directions of page; #330

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion spin.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
className: 'spinner', // CSS class to assign to the element
top: '50%', // center vertically
left: '50%', // center horizontally
right: 'auto', // default value for right position
shadow: false, // Whether to render a shadow
hwaccel: false, // Whether to use hardware acceleration
position: 'absolute' // Element positioning
Expand Down Expand Up @@ -191,7 +192,8 @@
width: 0,
zIndex: o.zIndex,
left: o.left,
top: o.top
top: o.top,
right: o.right
});

if (target) {
Expand Down