mirror of
https://github.com/Burrit0z/kai
synced 2025-07-02 06:56:47 +00:00
damn that bug
This commit is contained in:
@ -134,11 +134,15 @@ long long lastPercentage;
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
int height = (self.number * (bannerHeight + spacing));
|
int height = (self.number * (bannerHeight + spacing));
|
||||||
if(kaiAlign==0 && [self.superview.subviews count]>1) {
|
if(kaiAlign==0) {
|
||||||
height = (self.number * (bannerHeight + spacing)) - spacing;
|
height = (self.number * (bannerHeight + spacing));
|
||||||
} else {
|
} else {
|
||||||
height = bannerHeight + spacing;
|
height = bannerHeight + spacing;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if([self.superview.subviews count]>1) {
|
||||||
|
height = height - spacing;
|
||||||
|
}
|
||||||
self.heightConstraint.constant = height;
|
self.heightConstraint.constant = height;
|
||||||
self.stack.heightConstraint.constant = height;
|
self.stack.heightConstraint.constant = height;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user