www.subjay.ru
I do chess on js, a log is displayed on the right, and a vertical scroll bar appears, here's how to make it always below, atoms have to constantly drag it down?
www.subjay.ru
I do chess on js, a log is displayed on the right, and a vertical scroll bar appears, here's how to make it always below, atoms have to constantly drag it down?
So:
document.forms.FF.b.scrollTop = document.forms.FF.b.scrollHeight; Shl is it obfuscator in your work or you write? (I understand your code)
var maxScrollTop = $('textarea').prop('scrollHeight'); var innerHeight = $('textarea').innerHeight(); $('textarea').scrollTop(maxScrollTop - innerHeight); And put it all on an event when a new entry appears in the textarea, well, or something like that. Understand yourself. The answer to this question is easily found in Google, by the way. In English.
Source: https://ru.stackoverflow.com/questions/321454/
All Articles