add intrinsicContentSize and fix a bug