Really quick question since it looks quite similar (but might just be coincidence), did you happen to use this for the right click context menu?
https://stackoverflow.com/a/20471268/938236
Just asking because it's my answer and I'd be really happy to see someone using it!