Changed x and y assignment trigger to get the correct value once the position depends on the own popup height. Fixes #6264