Browse Source

ok

pull/1/head
Burrit0z 4 years ago
parent
commit
c17e521190
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      KAIBatteryStack.mm

+ 3
- 0
KAIBatteryStack.mm View File



} else { } else {
int height = (self.number * (bannerHeight + spacing)); int height = (self.number * (bannerHeight + spacing));
if([self.superview.subviews count]>1) {
height = (self.number * (bannerHeight + spacing)) - spacing;
}
self.heightConstraint.constant = height; self.heightConstraint.constant = height;


UIStackView *s = (UIStackView *)(self.superview); UIStackView *s = (UIStackView *)(self.superview);

Loading…
Cancel
Save