瀏覽代碼

damn that bug

pull/1/head
Burrit0z 4 年之前
父節點
當前提交
1aea9e9541
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. +6
    -2
      KAIBatteryPlatter.mm

+ 6
- 2
KAIBatteryPlatter.mm 查看文件

@@ -134,11 +134,15 @@ long long lastPercentage;

} else {
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 {
height = bannerHeight + spacing;
}

if([self.superview.subviews count]>1) {
height = height - spacing;
}
self.heightConstraint.constant = height;
self.stack.heightConstraint.constant = height;


Loading…
取消
儲存