Burrit0z 4 лет назад
Родитель
Сommit
1aea9e9541
1 измененных файлов: 6 добавлений и 2 удалений
  1. +6
    -2
      KAIBatteryPlatter.mm

+ 6
- 2
KAIBatteryPlatter.mm Просмотреть файл



} else { } else {
int height = (self.number * (bannerHeight + spacing)); int height = (self.number * (bannerHeight + spacing));
if(kaiAlign==0 && [self.superview.subviews count]>1) {
height = (self.number * (bannerHeight + spacing)) - spacing;
if(kaiAlign==0) {
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;



Загрузка…
Отмена
Сохранить