From d340377b9bd4095115fc35e2914ff2bbe25d094f Mon Sep 17 00:00:00 2001 From: nickgrier <68348317+nickgrier@users.noreply.github.com> Date: Mon, 27 Jul 2020 11:14:37 -0700 Subject: [PATCH] Update CardPartHistogramView.swift --- CardParts/src/Classes/Card Parts/CardPartHistogramView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CardParts/src/Classes/Card Parts/CardPartHistogramView.swift b/CardParts/src/Classes/Card Parts/CardPartHistogramView.swift index e2cb4ae6..c11a1e6b 100644 --- a/CardParts/src/Classes/Card Parts/CardPartHistogramView.swift +++ b/CardParts/src/Classes/Card Parts/CardPartHistogramView.swift @@ -162,7 +162,7 @@ public class CardPartHistogramView: UIView, CardPartView { func computeSpacing(dataEntries: [DataEntry]) -> CGFloat { scrollView.layoutIfNeeded() let divideCount = dataEntries.count > 1 ? (CGFloat(dataEntries.count) - 1) : 1 - return (scrollView.bounds.width - (CGFloat(dataEntries.count) * width) / divideCount) + return (scrollView.bounds.width - (CGFloat(dataEntries.count) * width)) / divideCount } }