PeWu / topola

Topola – online genealogy visualization
Apache License 2.0
95 stars 28 forks source link

bug in simple-renderer.ts regarding positioning the rectangles of the spouses in vertical layout #41

Closed jklocker closed 2 years ago

jklocker commented 2 years ago

i suggest there is a bug in simple-renderer.ts regarding the positioning of rectangles of the spouses in vertical layout.

The current line is .attr('transform', (node) => translate(0, ${node.data.indi!.height}));

I suggest, it should be .attr('transform', (node) => translate(${node.data.indi!.width},0));

PeWu commented 2 years ago

Thanks for finding this issue and providing a solution.

The code should be fixed now and it is published as topola@3.5.1.