1
0
mirror of https://github.com/Burrit0z/kai synced 2025-07-01 07:16:47 +00:00

bro im shit dev smh

This commit is contained in:
Burrit0z
2020-05-21 21:14:27 -04:00
parent 16f294d77f
commit b70d126fc7
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ long long lastPercentage;
NSLog(@"Kai: Updating cell: %@ for device:%@", cell, device); NSLog(@"Kai: Updating cell: %@ for device:%@", cell, device);
} else if(![self.displayingDevices containsObject:deviceName]) { } else if(![self.displayingDevices containsObject:deviceName]) {
KAIBatteryCell *newCell = [[KAIBatteryCell alloc] initWithFrame:CGRectMake(0, y, self.frame.size.width, bannerHeight) device:device]; KAIBatteryCell *newCell = [[KAIBatteryCell alloc] initWithFrame:CGRectMake(0, y, self.frame.size.width, bannerHeight) device:device];
[self.superview addSubview:newCell]; [self addSubview:newCell];
[self.displayingDevices addObject:deviceName]; [self.displayingDevices addObject:deviceName];
//y+=bannerHeight + spacing; //y+=bannerHeight + spacing;
NSLog(@"Kai: Added cell: %@ for device:%@", cell, device); NSLog(@"Kai: Added cell: %@ for device:%@", cell, device);

View File

@ -85,7 +85,7 @@ NSMutableArray *deviceInstances;
} else if(bannerAlign==3) { //right } else if(bannerAlign==3) { //right
[blank.rightAnchor constraintEqualToAnchor:self.rightAnchor constant:horizontalOffset].active = YES; [blank.rightAnchor constraintEqualToAnchor:self.rightAnchor constant:horizontalOffset].active = YES;
} }
[blank.topAnchor constraintEqualToAnchor:self.topAnchor constant:self.frame.origin.y].active = YES; [blank.topAnchor constraintEqualToAnchor:self.topAnchor].active = YES;
[blank.widthAnchor constraintEqualToConstant:((self.frame.size.width) + bannerWidthFactor)].active = YES; [blank.widthAnchor constraintEqualToConstant:((self.frame.size.width) + bannerWidthFactor)].active = YES;
[blank.heightAnchor constraintEqualToConstant:bannerHeight].active = YES; [blank.heightAnchor constraintEqualToConstant:bannerHeight].active = YES;