git.iko.soy/typeable/elm-ui
on master help sign in
fix spacing for columns
commitf204bc1aeb1871d12f63f244725dc8b4b68efa8d authorElm UI Automation <automation@elm-ui.com> dateSat 9 May 2020, 15:51 (6 years ago) parentd188db2
1 file changed+7−4
tests-rendering/src/Testable/Element.elm+7−4
tests-rendering/src/Testable/Element.elm+7−4
@@ -707,7 +707,7 @@ heightHelper maybeMin maybeMax len =
707707 }
708708 ]
709709
710− Testable.Column _ _ ->
710+ Testable.Column colAttrs _ ->
711711 let
712712 childHeight child =
713713 child.bbox.height
@@ -721,11 +721,14 @@ heightHelper maybeMin maybeMax len =
721721 verticalPadding =
722722 context.self.bbox.padding.top + context.self.bbox.padding.bottom
723723
724− spacingValue =
725− toFloat context.parentSpacing * (toFloat (List.length context.children) - 1)
724+ spacingAmount =
725+ Testable.getSpacingFromAttributes colAttrs
726+
727+ totalSpacing =
728+ toFloat spacingAmount * (toFloat (List.length context.children) - 1)
726729 in
727730 [ expectRoundedEquality
728− { expected = totalChildren + verticalPadding + spacingValue
731+ { expected = totalChildren + verticalPadding + totalSpacing
729732 , found = context.self.bbox.height
730733 }
731734 ]