Assign the textView's scrollEnabled property in ASEditableTextNode's didLoad method.

This prevents a mismatch if the scrollEnabled property on ASEditableTextNode is set before the textView is loaded.
This commit is contained in:
Eric Jensen 2016-03-24 19:51:16 -07:00
parent eed812dcdf
commit f988f86f7f

View File

@ -161,7 +161,7 @@
// Create and configure our text view.
_textKitComponents.textView = self.textView;
//_textKitComponents.textView = NO; // Unfortunately there's a bug here with iOS 7 DP5 that causes the text-view to only be one line high when scrollEnabled is NO. rdar://14729288
_textKitComponents.textView.scrollEnabled = _scrollEnabled;
_textKitComponents.textView.delegate = self;
#if TARGET_OS_IOS
_textKitComponents.textView.editable = YES;