mirror of
https://github.com/Burrit0z/kai
synced 2025-06-30 21:06:46 +00:00
horizontal
This commit is contained in:
@ -135,7 +135,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
[self.heightAnchor constraintEqualToConstant:(bannerHeight + spacing)].active = YES;
|
[self.heightAnchor constraintEqualToConstant:(bannerHeight + spacing)].active = YES;
|
||||||
[self.widthAnchor constraintEqualToConstant:(self.frame.size.width)].active = YES;
|
if(kaiAlign==0) {
|
||||||
|
[self.widthAnchor constraintEqualToConstant:(self.frame.size.width)].active = YES;
|
||||||
|
} else {
|
||||||
|
[self.widthAnchor constraintEqualToAnchor:blurPlatter.widthAnchor].active = YES;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,9 +119,11 @@ long long lastPercentage;
|
|||||||
self.stack.heightConstraint.active = YES;
|
self.stack.heightConstraint.active = YES;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
int height = (self.number * (bannerHeight + spacing));
|
int height = (self.number * (bannerHeight + spacing));
|
||||||
if([self.superview.subviews count]>1) {
|
if(kaiAlign==0 && [self.superview.subviews count]>1) {
|
||||||
height = (self.number * (bannerHeight + spacing)) - spacing;
|
height = (self.number * (bannerHeight + spacing)) - spacing;
|
||||||
|
} else {
|
||||||
|
height = bannerHeight;
|
||||||
}
|
}
|
||||||
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