fgnass/spin.js — Issue #54: spin appears beneath container positioned child element
Author: bluescrubbie
Created: 2012-01-10 00:00:28+00:00
State: open

I'm placing a spin on a container that has an absolutely positioned child element.
Spin.js adds its elements as the first child of the container. If other child elements are statically positioned, spin will appear on top. If any following child elements have absolute or relative positioning, they will be on top of spin.

You can play with an example here:
http://jsfiddle.net/8w3jU/32/

I corrected this by changing the spin.js ins function to use appendChild instead of insertBefore. Then it is the last element in the container, and the DOM's natural z-order will place it on top.