Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(taro-router-rn): 页面根节点 height: 100% 无效 #2114

Merged
merged 2 commits into from
Feb 14, 2019

Conversation

js-newbee
Copy link
Contributor

@js-newbee js-newbee commented Feb 6, 2019

现在页面默认是用 ScrollView 包裹,但没加 contentContainerStyle,导致页面根节点无法继承页面高度
表现为在页面根节点上设置 flex: 1、height: 100% 时都无法实现全屏

另外文档中关于“页面怎样设置高度 100%”这块说反了,应该是设置为 disableScroll: true + height: 100% 才行,实测 RN 上有效果,但会导致微信小程序上无法滚动,加 overflow: scroll 也不行,只能最外层用 ScrollView

@Pines-Cheng
Copy link
Contributor

666

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.

2 participants