added maxTopInset setting with animation BOOL