[misc] Fixed pedigree node menu not positioned correctly near screen edges when switching tabs