diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-04-04 13:25:10 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-04-04 13:25:10 +0200 |
commit | 93a75abb1daaf2d4dfa59c348d6a08d8ca0c9659 (patch) | |
tree | 2f81888541adea55d2c1a06bcfa0e7c63616f99d /webclient/client.html | |
parent | 46d4be01ced73e2da12ef6dbe711fda86eeaecbd (diff) |
webclient: Fix auto-scrolling
Diffstat (limited to 'webclient/client.html')
-rw-r--r-- | webclient/client.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webclient/client.html b/webclient/client.html index 939b9cb..241ca90 100644 --- a/webclient/client.html +++ b/webclient/client.html @@ -263,6 +263,7 @@ function drawRoomEntry(type,args){ alert("drawRoomEntry on unknown type '"+type+"'!"); break; } + tr.scrollIntoView(); } function addRoomEntry(roomid,type,args){ @@ -467,6 +468,12 @@ table{ #roomlog_table{ width:100%; } +#roomlog{ + /* The scrolling-table hack */ + display:block; + overflow-y:auto; + height:calc(100vh - 63px); /* TODO: figure out whether 63 is ALWAYS correct */ +} #roomlog > tr{ vertical-align:top; } |