[fix] TextInput alignment of small inner 'input'

Fix #139
This commit is contained in:
Nicolas Gallagher
2016-07-06 10:44:28 -07:00
parent a15b15c55d
commit 26758e905c
+3 -2
View File
@@ -240,7 +240,7 @@ const styles = StyleSheet.create({
borderWidth: 1 borderWidth: 1
}, },
wrapper: { wrapper: {
flexGrow: 1 flex: 1
}, },
input: { input: {
appearance: 'none', appearance: 'none',
@@ -248,8 +248,9 @@ const styles = StyleSheet.create({
borderWidth: 0, borderWidth: 0,
boxSizing: 'border-box', boxSizing: 'border-box',
color: 'inherit', color: 'inherit',
flexGrow: 1, flex: 1,
font: 'inherit', font: 'inherit',
minHeight: '100%', // center small inputs (fix #139)
padding: 0, padding: 0,
zIndex: 1 zIndex: 1
}, },