Unwanted horizontal scroll when editing a textblock out of the viewport

note

I’m working with textblocks, and it seems that when activating a text block that is slightly out of the current viewport, the viewport will shift vertically and horizontally to bring the text editor into view. Ideally, I wouldn’t want the entire view shifting to the left when this happens. Is there a way to achieve this?

The above gif demonstrates the behavior using the ‘Interactive Flowchart’ sample. I modified it by increasing the width of the graph, which is when the issue began to appear.

Thanks

That’s because the browser is automatically scrolling so that the whole text <input> (or as much as possible) can be seen by the person wanting to edit some text.

I don’t know why it’s moving so far, though. Off hand I don’t know how to control that, but maybe there is. I suppose the Element.onscroll event is being raised.