} 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); |