If a Dock window uses a mask then the popups occured from it are placed far from the item that triggered them. I have sent a patch for this: https://git.reviewboard.kde.org/r/129696/
patch has been pushed