added dynamic textHeight for label boundaries