fix incorrect implementation of Label::getContentSize