Pikchr

Bug Report?
Login

Bug Report?

(1) By anonymous on 2025-03-03 17:06:50 [source]

Hello,

If any non-text block object (box, cylinder, etc) is explicitly positioned relative to a text object (technically also a block object having anchors n, ne, e, etc), then the non-text block object auto-fits. I did not expect this behavior and offer this for consideration as a bug.

The simplest code that demonstrates the behavior is as follows:

A B
A: text "A"
B: box "B" with w at A.e

"Previous" and "nth" references have the same results:

A B C D E F G
A: text "A"
B: box "B" with w at previous .e
C: box "C"
D: box "D" with w at B.width+C.width right of A.e
E: box "E"
F: box "F" with w at B.width+C.width+D.width+E.width right of first text .e
G: box "G" with w at previous .e

A non-text block object explicitly positioned relative to an explicitly fitted non-text block object does not have the same behavior.

A B
A: box "A" fit
B: box "B" with w at A.e

Thank you for considering; apologies if this is intended behavior.

Thank you very much for your time and work on Pikchr.