git.iko.soy/typeable/elm-ui
on master help sign in
fix spacing for columns
f204bc1Elm UI Automation
tests-rendering/src/Testable/Element.elm+7−4
@@ -707,7 +707,7 @@ heightHelper maybeMin maybeMax len =
707 }
707 }
708 ]
708 ]
709
709
710− Testable.Column _ _ ->
710+ Testable.Column colAttrs _ ->
711 let
711 let
712 childHeight child =
712 childHeight child =
713 child.bbox.height
713 child.bbox.height
@@ -721,11 +721,14 @@ heightHelper maybeMin maybeMax len =
721 verticalPadding =
721 verticalPadding =
722 context.self.bbox.padding.top + context.self.bbox.padding.bottom
722 context.self.bbox.padding.top + context.self.bbox.padding.bottom
723
723
724− spacingValue =
724+ spacingAmount =
725+ Testable.getSpacingFromAttributes colAttrs
726+
727+ totalSpacing =
725− toFloat context.parentSpacing * (toFloat (List.length context.children) - 1)
728+ toFloat spacingAmount * (toFloat (List.length context.children) - 1)
726 in
729 in
727 [ expectRoundedEquality
730 [ expectRoundedEquality
728− { expected = totalChildren + verticalPadding + spacingValue
731+ { expected = totalChildren + verticalPadding + totalSpacing
729 , found = context.self.bbox.height
732 , found = context.self.bbox.height
730 }
733 }
731 ]
734 ]