mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Default scrollview to flexShrink to allow views below it
Summary: Changing from flex -> flexGrow on Scrollview caused some layouts to break due to having views below the scrollview. Adding flexShrink allows for the behavior again. Reviewed By: blairvanderhoof Differential Revision: D3936963 fbshipit-source-id: 0f43e6f5148918d3d431b98d26d185bbcc1548d0
This commit is contained in:
committed by
Facebook Github Bot 9
parent
e083f9a139
commit
c43a3f5d84
@@ -546,11 +546,13 @@ const ScrollView = React.createClass({
|
||||
const styles = StyleSheet.create({
|
||||
baseVertical: {
|
||||
flexGrow: 1,
|
||||
flexShrink: 1,
|
||||
flexDirection: 'column',
|
||||
overflow: 'scroll',
|
||||
},
|
||||
baseHorizontal: {
|
||||
flexGrow: 1,
|
||||
flexShrink: 1,
|
||||
flexDirection: 'row',
|
||||
overflow: 'scroll',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user