magicsunday / webtrees-pedigree-chart

SVG based pedigree chart module for webtrees genealogy application.
GNU General Public License v3.0
49 stars 16 forks source link

Question: How do I get less space between name and dates #68

Closed JustCarmen closed 8 months ago

JustCarmen commented 10 months ago

I am using your charts with minor modifications.

I noticed the boxes in the latest version are larger than before. As a result, there is much more unused and unnecessary space between the names and the dates.

Old version: Snag_30dd73ec

Current version: Snag_30de28c4

You probably have your reasons for this change, but I like more the compact layout of the previous version. So I tried to get it back, but I can't get it to work:

I figured out that I should change LAYOUT_VERTICAL_NODE_WIDTH en LAYOUT_VERTICAL_NODE_HEIGHT in resources\js\modules\lib\constants.js. I reset the values to the old values (150 and 175).

But then I get this: Snag_30ed6121

The dates are outside the box

And now I am stuck. What else should I change?

magicsunday commented 8 months ago

The extra space is used for the alternative name of an individual, as its currently not possible to create boxes with different heights.

grafik

magicsunday commented 8 months ago

I added a module config and a form option to show/hide the alternative name.

grafik grafik

xiaoyang2013 commented 8 months ago

314504056-3a8f9b50-bb2a-4cfb-a362-fe026119d1b6 Where can I see this configuration? I did not find this interface in the background of version 1.7.1. webtrees 2.1.19

JustCarmen commented 8 months ago

Thanks Rico for this fix. Works fine.

@xiaoyang2013 This code has been added to the development version and will be part of the next release.