Skip to content

Commit

Permalink
Add 'right' css options for use with rtl directions of page;
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksander Korolev committed Nov 24, 2016
1 parent 3b987bc commit a78aaf3
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit a78aaf3

Please sign in to comment.