Fix bug when get size of constrained label