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

自定义指标配置项部分手机兼容问题 #200

Open
zyf540860996 opened this issue Mar 22, 2024 · 2 comments
Open

自定义指标配置项部分手机兼容问题 #200

zyf540860996 opened this issue Mar 22, 2024 · 2 comments

Comments

@zyf540860996
Copy link

指标配置项:

windows = [{
Name: '测试',
Script: '自定义脚本',
IsShowIndexName: true,
IsDrawTitleBG: true,
IsShowNameArrow: true,
IsShowTitleArrow: false
}]

在ios15的浏览器中 当 IsDrawTitleBG 设置为 true时,自定义指标标题无法显示在标题栏上
ios17中可以正常显示并且接受点击事件

参考文档地址:https://blog.csdn.net/jones2000/article/details/103187576

@zyf540860996
Copy link
Author

简单的排查了下 webhqchart.demo/jscommon/umychart.js 文件 ,发现第52230行的 this.Canvas.roundRect( ToFixedPoint(rtButton.Left), ToFixedPoint(rtButton.Top), ToFixedRect(rtButton.Width), ToFixedRect(rtButton.Height), [roundRadius]); 可能存在问题。

将这段代码注释后,指标名称和箭头都显示了,并且事件也响应了

@jones2000
Copy link
Owner

image
用最新版本,使用直角试试。

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

No branches or pull requests

2 participants