Add IDs to labels for measureText

Added IDs to labels so measureText could work. Original code didn't
work. Bug#19641