Skip to content

Commit

Permalink
Fix vertical alignment issue when on top
Browse files Browse the repository at this point in the history
  • Loading branch information
andygeers committed Feb 25, 2015
1 parent 50632d4 commit 6178b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Coach Marks/DDBubble.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 6178b11

Please sign in to comment.