Fix anchoring of popup windows.