added support for autolayout with intrinsicContentSize
fix scrollView contentSize when laying out