Is there a way to have the Markdown component AutoScroll when the text starts overflowing vertically?
I know this post is a bit old, but I was wondering if anyone has any information on this topic that they could share?
I believe you could use the style property overflowY set to auto.
My apologies, I believe I may have misinterpreted your request. I'm not sure if you are asking to automatically bring up the scroll bar or to automatically scroll to the bottom?
You could hack up something with js injection i guess. Here i got you something, not clean but yh...
Dont let any user input into this, as it is not secure
scrollingmarkdown.zip (6.0 KB)
I'm developing a custom messaging application in Perspective that looks like this. I insert messages into a DB table with just a few columns, and query the results from a Named Query, then transform them to be markdown-friendly.
I made an attempt but was unable to get the JS injection solution working without having extremely large bubbles (not shown but they take up the whole window). As soon as I change anything related to the height component within the imported style class, the auto scrolling doesn't seem to work.
Is there a more robust solution out there for auto-scrolling in the markdown component?