fgnass / spin.js

A spinning activity indicator
http://spin.js.org
MIT License
9.3k stars 1.02k forks source link

Spinner looks weird when centered on odd number parent container widths... #380

Open benmcmaster opened 3 years ago

benmcmaster commented 3 years ago

When I add the spinner to my site I noticed that half of the time it looks really weird on Chrome. Looks fine on Safari and Firefox.

It seems it looks weird when the parent container of spinner has a width with an odd number of pixels...

Check out the weirdness: https://drive.google.com/file/d/13aGRQdhJ-d6pxOo1fZPl3sfwJijRcnWx/view?usp=sharing

Is this some sort of rounding error?

theodorejb commented 3 years ago

@benmcmaster Can you share the code to reproduce? E.g. by forking this StackBlitz example: https://stackblitz.com/edit/spin-js-starter?file=index.ts