SpiderStrategies / kalpa-tree

A tree implementation backed by D3
http://spiderstrategies.github.io/kalpa-tree/
ISC License
4 stars 2 forks source link

RTL node-contents width is too long #482

Closed derekstory closed 1 month ago

derekstory commented 1 month ago

This is for Impact issue: https://github.com/SpiderStrategies/Scoreboard/issues/59844

This is subtracting a negative value but the value should be positive to fit the space:

Screenshot 2024-08-29 at 8 36 25 AM

So that overflows which is why the code makes it expand:

Screenshot 2024-08-29 at 8 36 19 AM

This was caused by a change I made:

https://github.com/SpiderStrategies/kalpa-tree/commit/4f6c953b0f737a190e3131bcff66d8ee0ad7e5ac