mirror of
https://github.com/status-im/react-native.git
synced 2025-01-12 18:44:25 +00:00
Set scrollsToTop = NO for UITextViews
Summary: Complete the work from 853d5b2221a692110607ef12916263078141e107 by also fixing the placeholder view. Closes https://github.com/facebook/react-native/pull/3129 Reviewed By: @svcscm Differential Revision: D2499753 Pulled By: @vjeux
This commit is contained in:
parent
c5b82fe600
commit
1d77645a53
@ -78,6 +78,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
|
||||
_placeholderView = [[UITextView alloc] initWithFrame:self.bounds];
|
||||
_placeholderView.backgroundColor = [UIColor clearColor];
|
||||
_placeholderView.scrollEnabled = false;
|
||||
_placeholderView.scrollsToTop = NO;
|
||||
_placeholderView.attributedText =
|
||||
[[NSAttributedString alloc] initWithString:_placeholder attributes:@{
|
||||
NSFontAttributeName : (_textView.font ? _textView.font : [self defaultPlaceholderFont]),
|
||||
|
Loading…
x
Reference in New Issue
Block a user