Solved bug measuring the panel when the label is not big enough