From c17e521190612aeee2b7b94c48c4bd07fdef778b Mon Sep 17 00:00:00 2001 From: Burrit0z Date: Sun, 31 May 2020 14:38:47 -0400 Subject: [PATCH] ok --- KAIBatteryStack.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/KAIBatteryStack.mm b/KAIBatteryStack.mm index ab6985e..796af5c 100755 --- a/KAIBatteryStack.mm +++ b/KAIBatteryStack.mm @@ -114,6 +114,9 @@ long long lastPercentage; } else { int height = (self.number * (bannerHeight + spacing)); + if([self.superview.subviews count]>1) { + height = (self.number * (bannerHeight + spacing)) - spacing; + } self.heightConstraint.constant = height; UIStackView *s = (UIStackView *)(self.superview);