Skip to content

Commit

Permalink
[TIMOB-20404]: iOS ProgressBar gets clipped in parent with height Ti.…
Browse files Browse the repository at this point in the history
…UI.SIZE (#9273)

* [TIMOB-20404]: iOS ProgressBar gets clipped in parent with height Ti.UI.SIZE
  • Loading branch information
vijaysingh-axway authored and sgtcoolguy committed Nov 7, 2017
1 parent ed7a2b7 commit 39117c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion iphone/Classes/TiUIProgressBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ - (CGFloat)contentHeightForWidth:(CGFloat)width
{
CGSize fontSize = [self sizeForFont:width];
CGSize progressSize = [progress sizeThatFits:fontSize];
return fontSize.height + progressSize.height;
if (messageLabel == nil) {
return fontSize.height + progressSize.height;
}
return fontSize.height + progressSize.height + 5;
}
#endif

Expand Down

0 comments on commit 39117c4

Please sign in to comment.