Popup position in datagrid

Hi,

Finally, I find a solution thanks to this post : Popup for Datagrid Cell Element not working
But it still remain a trouble. On the first click, even though the popup is well positionned, this one is empty :

After that, if i click again, it works well :

Would you have any idea about that?

Regards,