mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 17:29:54 +02:00
Merge pull request #1911 from Rutorai/bug/1651_milestone_incorrect_vertical_position
The vertical position was wrongly based on index in sorted array.
This commit is contained in:
@@ -189,6 +189,9 @@ export const draw = function(text, id) {
|
|||||||
})
|
})
|
||||||
.attr('height', theBarHeight)
|
.attr('height', theBarHeight)
|
||||||
.attr('transform-origin', function(d, i) {
|
.attr('transform-origin', function(d, i) {
|
||||||
|
// Ignore the incoming i value and use our order instead
|
||||||
|
i = d.order;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
(
|
(
|
||||||
timeScale(d.startTime) +
|
timeScale(d.startTime) +
|
||||||
|
Reference in New Issue
Block a user