Added intrinsic content size logic, so it can be used with auto-layout.