修复了QMUIFloatLayoutView 第一行 item y坐标计算考虑itemMargins.top的问题 #842
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
发现过程:
在阅读qmuidemo源码时发现,修改QDFloatLayoutViewController.m中22行
self.floatLayoutView.itemMargins = UIEdgeInsetsMake(0, 0, 10, 10);
为:
self.floatLayoutView.itemMargins = UIEdgeInsetsMake(10, 10, 10, 10);
之后,显示的第一个item的y值应为12,但实际显示为22.不符合代码注释所描述
修改以后,再进行验证,问题解决,特提交一个PR