yishn / tikzcd-editor

A simple visual editor for creating commutative diagrams.

Home Page:https://tikzcd.yichuanshen.de/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using long labels increases the distance form the label to the arrow

StrikeTom opened this issue · comments

commented

When labeling a vertical arrow the text distances itself from the arrow it is attached to.
This issue is relatively new.

Illustration:
image
Link

I imagine this was introduced by this change: 43f0d9d

Good catch everyone! @Isomorphisme Do you have any idea what's going on? Otherwise, I will take a look this weekend.

I think I broke something because I don't understand what the 'heightDiff' is. It seems that deleting this little part solves the issue though. I do not have a lot of time to test, but if someone wants, I think that something along the lines of Isomorphisme@52b6c7e should work.

Took me a while to figure out what I wrote, but I think I finally got the correct computations... 😅