Not sure what Spray exactly does here, but from Graphiti point of view this
looks as if the inner Text graphics algorithm is a little too large and
covers part of the outer rectangle after the direct editing.

Can you check what exactly the direct editing feature and the associated
layout and update features do? There might be an issue with the size change
they do.