Scaling not taken in to account for popup menu positioning?

I’ve got a small problem with popup menus appearing offscreen if the global scale factor is more than 1. I’ve not had a chance to fully look in to this but at a guess I would say that the scale factor that will be applied to the popup menu isn’t be taken in to account when the decision to place it above or below the mouse is taken?

Thanks Dave, I’ll take a look.