From 5882189bc4750a23a62c4435206b867f1cf5cad8 Mon Sep 17 00:00:00 2001 From: Burrit0z Date: Tue, 2 Jun 2020 20:35:05 -0400 Subject: [PATCH] :vibeok: :tada: --- KAIBatteryPlatter.mm | 6 +++++- kaiprefs/Resources/Root.plist | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/KAIBatteryPlatter.mm b/KAIBatteryPlatter.mm index 0c146f1..c9bda42 100755 --- a/KAIBatteryPlatter.mm +++ b/KAIBatteryPlatter.mm @@ -16,7 +16,6 @@ NSTimer *queueTimer = nil; self.stack.alignment = 0; self.oldCountOfDevices = -100; self.queued = NO; - self.clipsToBounds = NO; [self setMinimumZoomScale:1]; [self setMaximumZoomScale:1]; @@ -44,6 +43,9 @@ long long lastPercentage; if(self.oldCountOfDevices == -100) { self.oldCountOfDevices = [devices count] + 1; } + for(KAIBatteryCell *cell in self.stack.subviews) { + [cell updateInfo]; + } if(!self.isUpdating && self.oldCountOfDevices != 0 && ([devices count] + 1 == self.oldCountOfDevices || [devices count] - 1 == self.oldCountOfDevices || [devices count] == self.oldCountOfDevices)) { //if(!self.isUpdating) { @@ -173,6 +175,8 @@ long long lastPercentage; } } } + + [self setContentSize:self.stack.frame.size]; } -(void)layoutSubviews { diff --git a/kaiprefs/Resources/Root.plist b/kaiprefs/Resources/Root.plist index 54b2829..1e9df3e 100644 --- a/kaiprefs/Resources/Root.plist +++ b/kaiprefs/Resources/Root.plist @@ -188,7 +188,7 @@ cell PSGroupCell label - Banner Alignment + Banner Alignment (Vertical mode) cell