fix issue #167: 标题 只有小红点的话,显示的时候红点🔴会有被切掉的感觉,不是圆形展示#284
Open
dadahua wants to merge 1 commit intopujiaxin33:masterfrom
Open
fix issue #167: 标题 只有小红点的话,显示的时候红点🔴会有被切掉的感觉,不是圆形展示#284dadahua wants to merge 1 commit intopujiaxin33:masterfrom
dadahua wants to merge 1 commit intopujiaxin33:masterfrom
Conversation
fix issue pujiaxin33#167: JXSegmentedNumberDataSource 当number为1234567890一位数字宽度不一致时,小红点不是圆形
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
问题描述
fix issue #167: JXSegmentedNumberDataSource 当number为1234567890一位数字宽度不一致时,小红点不是圆形
fix issue #167: 标题 只有小红点的话,显示的时候红点🔴会有被切掉的感觉,不是圆形展示
修复方案
1.数字label添加最小宽度numberMinimumWidth保证一位数字的宽度一致
2.只有小红点的话,当小红点view的起始点是2位小数时,iOS设备的屏幕分辨率通常使用整数像素来进行渲染。带有小数点的坐标可能导致视图位置的像素对齐不精确,尤其是在某些较低分辨率的屏幕上,可能会导致视图边缘不平整,圆角部分被切割掉
测试验证
iPhone11的测试真机截图:
