git.iko.soy/typeable/elm-ui
on master help sign in
resolves #115
commitada7de456e79c17c9f84f38bbed48281031b9aa1 authorMatthew Griffith <mdg.griffith@gmail.com> dateSat 29 Jun 2019, 14:26 (7 years ago) parent9768fbc
1 file changed+13−10
src/Element/Keyed.elm+13−10
src/Element/Keyed.elm+13−10
@@ -20,7 +20,7 @@ This means if a key is changed between renders, then the diffing step will be sk
2020
2121-}
2222
23−import Element exposing (Attribute, Element, fill, height, width)
23+import Element exposing (Attribute, Element, fill, height, shrink, width)
2424import Internal.Model as Internal
2525import Internal.Style exposing (classes)
2626
@@ -31,8 +31,8 @@ el attrs child =
3131 Internal.element
3232 Internal.asEl
3333 Internal.div
34− (width Element.shrink
35− :: height Element.shrink
34+ (width shrink
35+ :: height shrink
3636 :: attrs
3737 )
3838 (Internal.Keyed [ child ])
@@ -44,9 +44,9 @@ row attrs children =
4444 Internal.element
4545 Internal.asRow
4646 Internal.div
47− (Internal.htmlClass classes.contentLeft
48− :: Internal.htmlClass classes.contentCenterY
49− :: width fill
47+ (Internal.htmlClass (classes.contentLeft ++ " " ++ classes.contentCenterY)
48+ :: width shrink
49+ :: height shrink
5050 :: attrs
5151 )
5252 (Internal.Keyed children)
@@ -58,10 +58,13 @@ column attrs children =
5858 Internal.element
5959 Internal.asColumn
6060 Internal.div
61− (Internal.htmlClass classes.contentTop
62− :: Internal.htmlClass classes.contentLeft
63− :: height fill
64− :: width fill
61+ (Internal.htmlClass
62+ (classes.contentTop
63+ ++ " "
64+ ++ classes.contentLeft
65+ )
66+ :: height shrink
67+ :: width shrink
6568 :: attrs
6669 )
6770 (Internal.Keyed children)