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: