mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-31 09:44:21 +00: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,
|
flexNegative: true,
|
||||||
fontWeight: true,
|
fontWeight: true,
|
||||||
lineClamp: true,
|
lineClamp: true,
|
||||||
lineHeight: true,
|
|
||||||
opacity: true,
|
opacity: true,
|
||||||
order: true,
|
order: true,
|
||||||
orphans: true,
|
orphans: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user