Skip to content

Commit

Permalink
Merge pull request #4868 from vishalduggal/timob-15202
Browse files Browse the repository at this point in the history
[TIMOB-15202]iOS:verify height to be atleast lineheight
  • Loading branch information
pec1985 committed Oct 29, 2013
2 parents 435703e + 6b02e36 commit ba370ac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions iphone/Classes/TiUILabelProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ -(CGFloat) verifyWidth:(CGFloat)suggestedWidth
-(CGFloat) verifyHeight:(CGFloat)suggestedHeight
{
int height = ceil(suggestedHeight);
if ([self viewInitialized]) {
int minHeight = ceil([[[(TiUILabel*)view label] font] lineHeight]);
if (height < minHeight) {
height = minHeight;
}
}

if (height & 0x01)
{
height ++;
Expand Down

0 comments on commit ba370ac

Please sign in to comment.