Skip to content
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

Layout 布局提供设置项回避浮点数宽高 #35

Open
HarrisonXi opened this issue Dec 11, 2017 · 0 comments
Open

Layout 布局提供设置项回避浮点数宽高 #35

HarrisonXi opened this issue Dec 11, 2017 · 0 comments
Assignees

Comments

@HarrisonXi
Copy link
Contributor

部分组件在宽高为浮点数时边缘绘制可能存在问题,需要在 Layout 层布局时处理掉此问题。

目前考虑采用各区域右侧补 & 左侧裁的四舍五入方法,即 375 宽度双列布局结果:

375 = 188 + 187

第一个元素 left = 0, right = 187.5,右侧补到 188

第二个元素 left = 187.5, right = 375,左侧裁剪到从 188 开始

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant