-
Notifications
You must be signed in to change notification settings - Fork 1k
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 positioning is required #275
Comments
This would complicate positioning (i.e. if both left and right are specified which one would you use?), and it's easy enough on your side, so closing. right = '60%'
left = (100 - (+(right.slice(0, -1)))) + '%'
// '40%'
right = 60
left = (100 - right) + '%'
// '40%' |
This fix doesn't work if I want to position the spinner 30px from the right without knowing the element width (on a button, for example). |
If we were to specifically support @dorian-marchal Is there anything preventing you from using CSS to accomplish this? For example: var spinner = new Spinner({className: 'right-spinner', left: 'auto'}); And your CSS could contain something like this: .right-spinner {
right: 30px;
} |
Since only the ´top´ and ´left´ attributes are provided, it's impossible to properly align the spinner to the right of the page. Providing a ´right´ parameter would solve this.
The text was updated successfully, but these errors were encountered: