mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-03-29 00:38:18 +08:00
Do not treat lineHeight as a unitless numbers
Match the behavior of react-native for iOS and Android The browser treats the 'line-height' CSS property as an 'em' value, while react-native treats it as pixel unit (or device unit, which should be 'px' for the web), this issue is causing the 'TextInput' component to be sized incorrectly. Close #142
This commit is contained in:
committed by
Nicolas Gallagher
parent
93d1488cc7
commit
ae38bb538c
@@ -9,7 +9,6 @@ const unitlessNumbers = {
|
||||
flexNegative: true,
|
||||
fontWeight: true,
|
||||
lineClamp: true,
|
||||
lineHeight: true,
|
||||
opacity: true,
|
||||
order: true,
|
||||
orphans: true,
|
||||
|
||||
Reference in New Issue
Block a user