Tooltip window has negative top

I’m trying to use the tooltip window in CodeMirror but for some reason this one shows with a negative top so it is way of the screen. Does somebody have an idea how to fix this?

I’m showing codemirror like this

Solved… I was missing a style sheet. After adding this the negative top issue was fixed.