Resolved the visual glitch with the pop up menu

It’s just a matter of setting the strokeEnd property to 0 before adding
the layer.

😃