Commit f470178b by Karthik Ponnam

hope ios notch fixed

parent 601b886f
...@@ -423,7 +423,7 @@ static const NSString * CSToastQueueKey = @"CSToastQueueKey"; ...@@ -423,7 +423,7 @@ static const NSString * CSToastQueueKey = @"CSToastQueueKey";
if([point caseInsensitiveCompare:CSToastPositionTop] == NSOrderedSame) { if([point caseInsensitiveCompare:CSToastPositionTop] == NSOrderedSame) {
return CGPointMake(self.bounds.size.width/2, (toast.frame.size.height / 2) + style.verticalPadding); return CGPointMake(self.bounds.size.width/2, (toast.frame.size.height / 2) + style.verticalPadding);
} else if([point caseInsensitiveCompare:CSToastPositionCenter] == NSOrderedSame) { } else if([point caseInsensitiveCompare:CSToastPositionCenter] == NSOrderedSame) {
return CGPointMake(self.bounds.size.width / 2, self.bounds.size.height / 2); return CGPointMake(self.bounds.size.width / 2, self.bounds.size.height / 2) + style.verticalPadding;
} }
} else if ([point isKindOfClass:[NSValue class]]) { } else if ([point isKindOfClass:[NSValue class]]) {
return [point CGPointValue]; return [point CGPointValue];
...@@ -448,7 +448,7 @@ static const NSString * CSToastQueueKey = @"CSToastQueueKey"; ...@@ -448,7 +448,7 @@ static const NSString * CSToastQueueKey = @"CSToastQueueKey";
self.maxWidthPercentage = 0.8; self.maxWidthPercentage = 0.8;
self.maxHeightPercentage = 0.8; self.maxHeightPercentage = 0.8;
self.horizontalPadding = 10.0; self.horizontalPadding = 10.0;
self.verticalPadding = 10.0; self.verticalPadding = 20.0;
self.cornerRadius = 10.0; self.cornerRadius = 10.0;
self.titleFont = [UIFont boldSystemFontOfSize:16.0]; self.titleFont = [UIFont boldSystemFontOfSize:16.0];
self.messageFont = [UIFont systemFontOfSize:16.0]; self.messageFont = [UIFont systemFontOfSize:16.0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment