@@ -872,7 +872,7 @@ textHelper textInput attrs textOptions =
872872 _ ->
873873 Nothing
874874
875− heightContent =
875+ heightConstrained =
876876 case textInput.type_ of
877877 TextInputNode inputType ->
878878 False
@@ -882,7 +882,7 @@ textHelper textInput attrs textOptions =
882882 |> List.filterMap getHeight
883883 |> List.reverse
884884 |> List.head
885− |> Maybe.map isShrink
885+ |> Maybe.map isConstrained
886886 |> Maybe.withDefault False
887887
888888 parentPadding =
@@ -950,18 +950,16 @@ textHelper textInput attrs textOptions =
950950 Internal.element
951951 Internal.asEl
952952 Internal.div
953− ((if heightContent then
954− [ Element.width Element.fill
955− , Internal.htmlClass classes.focusedWithin
956− ]
953+ ((if heightConstrained then
954+ (::) Element.scrollbarY
957955
958956 else
957+ identity
958+ )
959959 [ Element.width Element.fill
960960 , Internal.htmlClass classes.focusedWithin
961− , Element.scrollbarY
962961 , Internal.htmlClass classes.inputMultilineWrapper
963962 ]
964− )
965963 ++ redistributed.parent
966964 )
967965 (Internal.Unkeyed
@@ -1190,6 +1188,24 @@ isShrink len =
11901188 isShrink l
11911189
11921190
1191+isConstrained len =
1192+ case len of
1193+ Internal.Content ->
1194+ False
1195+
1196+ Internal.Px _ ->
1197+ True
1198+
1199+ Internal.Fill _ ->
1200+ True
1201+
1202+ Internal.Min _ l ->
1203+ isConstrained l
1204+
1205+ Internal.Max _ l ->
1206+ True
1207+
1208+
11931209isPixel len =
11941210 case len of
11951211 Internal.Content ->