Automated viewport after calling 'editTextBlock()'

Hello, Walter.

I’m calling ch.editTextBlock() sometimes.
This method re-locate viewport perfectly well that moves target node on the center of the canvas.

diagram.commandHandler.editTextBlock(tb)

I hope that I use this re-location without edit text block.
Would you let me use this re-location as a open method?
Or already offered?

Thank you!

Call CommandHandler.scrollToPart or Diagram.scrollToRect or Diagram.centerRect.

FYI, TextEditingTool.doActivate calls Diagram.scrollToRect.

1 Like

thank you, walter.
I resolved this issue nicely by your answer.