Fix child view's frame does not calculate properly problem