I'm not sure why position: fixed is set in CSS.
This prevents you from being able to position the progress bar in an element without overriding CSS. In other words, setParent() doesn't really do anything.
I think this should probably be set to relative, or just removed (default static).