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

title不居中 #61

Closed
a27919478 opened this issue Mar 14, 2017 · 5 comments
Closed

title不居中 #61

a27919478 opened this issue Mar 14, 2017 · 5 comments
Labels

Comments

@a27919478
Copy link

环形图的title不居中,不知道如何解决
image

@xiaolin3303
Copy link
Owner

由于微信小程序没有提供测量文字宽度的API,所以是自行写程序计算文案的宽度,当然会出现误差,特别是英文和数字的时候,稍后我会加一个参数配置可以让开发者手动修复文案的位置偏移量

@xiaolin3303
Copy link
Owner

新增位置偏移量配置,具体配置参看参数说明

@a27919478
Copy link
Author

感谢回复

@13hua
Copy link

13hua commented Apr 17, 2017

这个圆环中间的字是怎么加上去的?

@xiaolin3303
Copy link
Owner

opts.title, opts.subtitle,具体见参数说明

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

No branches or pull requests

3 participants