New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TIMOB-20404]: iOS ProgressBar gets clipped in parent with height Ti.UI.SIZE #9273
Conversation
iphone/Classes/TiUIProgressBar.m
Outdated
if (messageLabel == nil) { | ||
return fontSize.height + progressSize.height; | ||
} | ||
return fontSize.height + progressSize.height + 5; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation is incorrect. I also feel like this is not the proper way to fix it (by manually setting a constant value of 5 just to unclip it). I need to spend more time reviewing the progress-bar layout-code this week.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hansemannn, If you see function -(void)layoutSubviews in same file, there is code snippet -
float fittingHeight = barSize.height + messageSize.height + 5;
which sets the gap of 5 pixel between message and progress bar. So while calculating height it should also give +5 pixel, if message is there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
Generated by 🚫 dangerJS |
https://jira.appcelerator.org/browse/TIMOB-20404