Skip to content

Commit

Permalink
Add scrollbar to multiline TextInput (microsoft#1366)
Browse files Browse the repository at this point in the history
  • Loading branch information
chiuam committed Aug 24, 2022
1 parent 3d00c0f commit 3836c1b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ - (void)setEnableFocusRing:(BOOL)enableFocusRing {
- (void)scrollViewDidScroll:(RCTUIScrollView *)scrollView // TODO(macOS ISS#3536887)
{
RCTDirectEventBlock onScroll = self.onScroll;

#if TARGET_OS_OSX // [TODO(macOS GH#774)
[_scrollView setHasVerticalScroller:YES];
#endif // ]TODO(macOS GH#774)
if (onScroll) {
CGPoint contentOffset = scrollView.contentOffset;
CGSize contentSize = scrollView.contentSize;
Expand Down

0 comments on commit 3836c1b

Please sign in to comment.