Make console automagically scroll to bottom

This commit is contained in:
Kristóf Tóth 2018-05-28 14:14:23 +02:00
parent f384826200
commit a9488cd504

View File

@ -1,4 +1,9 @@
<!-- Copyright (C) 2018 Avatao.com Innovative Learning Kft.
All Rights Reserved. See LICENSE file for details. -->
<textarea [(ngModel)]="console_content" class="tfw-console" spellcheck="false"></textarea>
<textarea [(ngModel)]="console_content"
#tfwconsole
[scrollTop]="tfwconsole.scrollHeight"
class="tfw-console"
spellcheck="false">
</textarea>