ensure moveUp correction is an integer to prevent font blurring
commiteaf7041efce0845387ffcb8f729593ff7d86b60d
authorMatthew Griffith <mdg.griffith@gmail.com>
dateThu 1 Aug 2019, 08:57 (7 years ago)
parent2bfb5a9
src/Element/Input.elm+1−1
@@ -1111,7 +1111,7 @@ calcMoveToCompensateForPadding attrs =
11111111 Internal.NoAttribute
11121112
11131113 Just vSpace ->
1114− Element.moveUp (toFloat vSpace / 2)
1114+ Element.moveUp (floor (toFloat vSpace / 2)))
11151115
11161116
11171117{-| Given the list of attributes provided to `Input.multiline` or `Input.text`,