Support auto resizing methods

Add intrinsicContentSize and fittingSize, to support auto resizing.