label/arrow position when data towards bottom#85
label/arrow position when data towards bottom#85alfred-c wants to merge 1 commit intoxbsoftware:masterfrom
Conversation
RE: Issue xbsoftware#9 Arrows and description not displaying in correct position If data is towards the bottom of the screen, label should be on top, but existing code would cause label and arrow to overlap. To fix, I removed the following offending lines and cleaned up unused variables: if (top_offset < label_shift_with_label_height && bottom_offset < label_shift_with_label_height) { label_y = data.center_y + label_margin; } Not sure why these lines were needed. Please review this section as it looks like the result of a bad merge.
|
Hi, I'm working on merging bug fixes into https://github.com/darron1217/enjoyhint.js |
|
The fork I referenced is at https://github.com/xbsoftware/enjoyhint, master branch, enjoyhint.js at the root (not sure why there's a different version in src folder)
On Tue, Jun 19, 2018 at 9:39 AM, Brian Richer <notifications@github.com<mailto:notifications@github.com>> wrote:
Hi, I'm working on merging bug fixes into https://github.com/darron1217/enjoyhint.js
I just tried this bug fix on that fork and it does not seem to fix the issue.
[image]<https://user-images.githubusercontent.com/9943931/41611433-6c593b6e-73b5-11e8-87a7-bb63a68f4074.png>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#85 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABInQXaVwkc07exSH025rJHDsqVZtQelks5t-SlUgaJpZM4SprNE>.
|
|
Didn't make that clear, I get the same behavior applying the bug fix to either branch. The js file in the root is auto generated by grunt. Take a look at the json file. |
|
Hi, I found a couple of bugs related with this issue. In one hand, I found out that the following code in renderLabel function was buggy: In the other hand, these variables were calculated wrongly as well: After this, any scenario in my app when both the label and arrow are rendered above the highlighted canvas worked fine. |
|
arkauss83, |
fix: fix hint position bug EN-4,xbsoftware#9 xbsoftware#38 xbsoftware#83 xbsoftware#85 xbsoftware#109

RE: Issue #9 Arrows and description not displaying in correct position
If data is towards the bottom of the screen, label should be on top, but existing code would cause label and arrow to overlap.
To fix, I removed the following offending lines and cleaned up unused variables:
Not sure why this was added. Please review this section as it looks like the result of a bad merge.