dringtech / ifg-charts

Visualisation component library for IfG
MIT License
1 stars 1 forks source link

Legend spacing is compressed after downloading PNG #15

Open sachinsavur opened 5 months ago

sachinsavur commented 5 months ago

After you download a PNG, the legend spacing on the website compresses so some elements are closer to others (though the downloaded PNG's spacing is fine). If you try to download the PNG again the downloaded version has compressed legend spacing.

See e.g. Ben Bradshaw's PUSS label moving closer to the SoS label:

Bradshaw uncompressed legend Bradshaw compressed legend

gilesdring commented 5 months ago

I think this is related to the lifecycle of the Drupal site. I can't replicate this behaviour on the test version of the site. If there's any way that the button actions can prevent a full Drupal refresh, I suspect that might fix the issue.

Other than that, could you check if there are any console messages when when this behaviour is occurring and paste in here.

philipnye commented 5 months ago

On the question of the button actions prompting a full Drupal refresh, was that part of your discussions with Soapbox i.e. has it been implemented that way for a reason?

Just tested and there are no console messages when this occurs.