addWidget, problem with element position

Hi, I have a problem with element position using addWidget().
The element is inserted in the wrong line.
Simple example to reproduce problem: https://jsfiddle.net/utkjqgfa/30/

It’s a bug or I’m doing something wrong?

addWidget is documented to put the widget below the given position, so it seems like it’s behaving as intended here.