-
-
Notifications
You must be signed in to change notification settings - Fork 716
[Bug] The text is not vertically centered. on Apple Device ( iPhone, iPad, Safari, ...) #643
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
Comments
Temporary solution: file : /src/extension/figure/text.ts
|
I have fixed this issue. The problem was that the developer always assigned the text attribute as:
And the coordinates were calculated based on this approach instead of utilizing the available properties for centering the text both vertically and horizontally, which are ( To fix this issue, the developer should take advantage of these properties and recalculate the padding, width, height, and rectangle coordinates to ensure proper alignment. |
Version
9.8.12
Steps to Reproduce
我发现当在 iOS 设备上使用 KLineCharts 库时,priceMark 的价格标记在垂直方向上没有居中对齐。请看图片。
Current Behavior
出现了如上图所示的偏移现象。
Expected Behavior
调整为两边对称。
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: