Closed zverbeta closed 6 years ago
This fix adjust child blocks to parent container.
The problem is in the child blocks that are positioned absolutely. When we resize the textarea, this action does not affect the pre tag
So, i adding (height, width) to parent container (.prism-live)
Its didn't work if we resize textarea manualy
Hi @zverbeta, which is why I added resize: none
to the textareas :)
And what's wrong with handling an event for resizing and changing the container depending on the size?
Because until ResizeObserver
is reliably supported, it's inherently flaky. There's a zillion things besides manual resizing that can resize the textarea, and it won't respond to most of them.
Also, relying on the mouse for resizing:
I'm gonna go ahead and close this, but don't let that discourage you from future contributions! I really appreciate that you discovered this long before release (sshh! 🤫) and took the time to contribute!
Cheers, Lea
Hey, thanks for contributing! However, there's already code in there to sync these heights. Did you find a case where it didn't work?