Milestone diamond can occlude Group label
kajuberdut opened this issue · comments
If a milestone is placed in the same position on the X-axis of a group as the text of a group, the milestones diamond occludes the text of the group making it partially or wholly unreadable.
To some extent this can be mitigated by changing the alignment of the group text BUT it would be better if the text remained readable even when these overlap.
Possible solutions:
- The Milestone diamonds should probably be drawn behind the group text. This might be complicated as I'm not sure if Z level can be controlled with pillow or if this has to be achieved with the draw order.
- If it is possible to check if the diamond overlaps with text it might be possible to mitigate this by making the diamond smaller, only an outline, making the diamond transparent in a horizontal strip, or in some other way making it possible to read the text that the diamond overlaps.
- It might be possible to change the default y-axis offset of the diamond or the group text in such a way that this scenario is much less likely to happen or to occlude the text.
I will make an attempt at a fix for this but wanted to log the issue in case there is already a plan for how to minimize this case.
Thanks @kajuberdut for the suggestions to the issue. Would aligning the task text to the left or right or at certain px/percentage (as you have suggested in the pull request) resolve this in the short term?
I will need some time to think of a better approach for a permanent or long-term solution.
Yes, currently changing the timeline size + font size and/or changing the text alignment can work around this.
Hi @kajuberdut
This is now resolved in v1.5.0. The milestone marker is drawn before the text of the task.
Sorry for taking this long. I have been too busy with my work.
This is wonderful and thank you!
With PR #103, this issue can be closed.