From 6178b11a4de4096c765b3f56be94847cf206dbd2 Mon Sep 17 00:00:00 2001 From: Andy Geers Date: Thu, 19 Feb 2015 13:58:30 +0000 Subject: [PATCH] Fix vertical alignment issue when on top --- Coach Marks/DDBubble.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Coach Marks/DDBubble.m b/Coach Marks/DDBubble.m index dda4166..48c9d0f 100755 --- a/Coach Marks/DDBubble.m +++ b/Coach Marks/DDBubble.m @@ -60,7 +60,7 @@ -(id)initWithFrame:(CGRect)frame title:(NSString*)title description:(NSString*)d float actualXPosition = offsets.width+PADDING*1.5; float actualYPosition = offsets.height+PADDING*1.25; float actualWidth = self.frame.size.width-offsets.width-PADDING*3; - float actualHeight = self.frame.size.height-offsets.height-PADDING*2.5; + float actualHeight = self.frame.size.height - ((self.arrowPosition==CRArrowPositionTop || self.arrowPosition == CRArrowPositionBottom) ? ARROW_SIZE : 0) - PADDING*2.5; UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(actualXPosition, actualYPosition, actualWidth, actualHeight)]; [titleLabel setTextColor:TEXT_COLOR];