Skip to content

Commit 07ca33a

Browse files
author
Aleksander Korolev
committed
Add 'right' css options for use with rtl directions of page;
1 parent 3b987bc commit 07ca33a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spin.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@
160160
className: 'spinner', // CSS class to assign to the element
161161
top: '50%', // center vertically
162162
left: '50%', // center horizontally
163+
right: 'none', // default value for right position
163164
shadow: false, // Whether to render a shadow
164165
hwaccel: false, // Whether to use hardware acceleration
165166
position: 'absolute' // Element positioning
@@ -191,7 +192,8 @@
191192
width: 0,
192193
zIndex: o.zIndex,
193194
left: o.left,
194-
top: o.top
195+
top: o.top,
196+
right: o.right
195197
});
196198

197199
if (target) {

0 commit comments

Comments
 (0)