Closed creativenoobie closed 5 years ago
I just solved this one.
scrollDown() {
let objDiv = document.getElementById('chat-window');
this.$nextTick(() => {
objDiv.scrollTop = objDiv.scrollHeight;
})
},
seems to do the trick.
Hey,
I'm using this plugin like this:
with following script:
Now, here's the problem, Although
objDiv.scrollHeight
is 723, I'm unable to scroll down to bottom of the div.I've tried multiple answers on stackoverflow: https://stackoverflow.com/questions/19418087/jquery-perfect-scroll-set-scrollbar-to-the-bottom-of-the-container https://stackoverflow.com/questions/270612/scroll-to-bottom-of-div
None of them is working for the plugin. Can you help me with this?