Added same logic for intrinsicContentSize.