Skip to content

Fix RCTScrollContentView layout with fixed size#453

Merged
tom-un merged 1 commit intomicrosoft:masterfrom
tido64:fix-scrollcontentview-legacy-mode
Jun 20, 2020
Merged

Fix RCTScrollContentView layout with fixed size#453
tom-un merged 1 commit intomicrosoft:masterfrom
tido64:fix-scrollcontentview-legacy-mode

Conversation

@tido64
Copy link
Copy Markdown
Member

@tido64 tido64 commented Jun 16, 2020

  • I am removing an existing difference between facebook/react-native and microsoft/react-native-macos 👍
  • I am cherry-picking a change from Facebook's react-native into microsoft/react-native-macos 👍
  • I am making a fix / change for the macOS implementation of react-native
  • I am making a change required for Microsoft usage of react-native

Summary

Always show the vertical scroll bar when Show scroll bars is set to Always. This makes it consistent with other system apps, such as Finder or Xcode.

Resolves #363

Changelog

[macOS] [Fixed] - Fix RCTScrollContentView layout with fixed size

Test Plan

Before After
image image
image image

For reference, here's Xcode with Show scroll bars set to Always:

image

Microsoft Reviewers: Open in CodeFlow

@tido64 tido64 requested a review from tom-un as a code owner June 16, 2020 15:04
@tido64 tido64 force-pushed the fix-scrollcontentview-legacy-mode branch from 51f6a11 to f6be201 Compare June 16, 2020 16:32
Copy link
Copy Markdown
Collaborator

@tom-un tom-un left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a huge improvement. Thanks!

I think it needs a similar affordance for when horizontal={true} for the vertical scroll indicator. See my other comment.

@tido64 tido64 force-pushed the fix-scrollcontentview-legacy-mode branch from f6be201 to a906b53 Compare June 17, 2020 12:20
@ghost ghost removed the Needs: Author Feedback label Jun 17, 2020
@tido64 tido64 force-pushed the fix-scrollcontentview-legacy-mode branch from a906b53 to 905a16f Compare June 19, 2020 07:49
@tido64 tido64 force-pushed the fix-scrollcontentview-legacy-mode branch from 905a16f to 13700d4 Compare June 20, 2020 00:31
@ghost ghost removed the Needs: Author Feedback label Jun 20, 2020
@tom-un tom-un merged commit 374cef8 into microsoft:master Jun 20, 2020
@tido64 tido64 deleted the fix-scrollcontentview-legacy-mode branch June 20, 2020 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ScrollView contents not laying out correctly when scroll indicators are always on and ScrollView is fixed width/height

2 participants