Add IDs to labels for measureText

Added IDs to labels so measureText could work. Original coded didn't
work. bug#19641