BUG regarding text editor and diagram style 'overview: hidden'

In this plunk you could see it Plunker - GoJs toolbar offset
How to reproduce:

  1. put a half node outside viewport
  2. double click to start edit text
  3. write a long string

Video how to reproduce it https://drive.google.com/file/d/1PMASBZ6MEoWTxUuBVYNtc1nqZkuFZY-7/view

Actual result: diagram moves and node has half of template

That looks like an interesting bug. I think our scrolling optimization isn’t catching that case. We’ll investigate.

Thanks for reporting the bug!

Keep me updated please!

Why are you setting overflow: hidden on the Diagram DIV? Since the <textarea> is a child of the Diagram DIV, it’s going to be hidden if it overflows, if you set that. This is then bumping our content unexpectedly.

We can’t exactly fix this because your CSS change is bumping the Canvas out of place. You can see this clearly if you add to the CSS:

#myDiagramDiv canvas {
  background: lime;
}