Skip to content

Commit

Permalink
Fixed bug where flexDiv children do not flex
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSeamau5 committed Feb 28, 2015
1 parent a0c11aa commit 24c0f1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Flex.elm
Expand Up @@ -67,7 +67,8 @@ flexNode : String -> List (String, String) -> List Attribute -> List Html -> Htm
flexNode name styles attributes children =
let
flexAttribute = style
([ ("flex", "1 1 auto")] ++ styles)
([ ("flex", "1 1 auto")
, ("display", "flex")] ++ styles)

in
node name (flexAttribute :: attributes) children
Expand Down

0 comments on commit 24c0f1d

Please sign in to comment.