From 93a75abb1daaf2d4dfa59c348d6a08d8ca0c9659 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Tue, 4 Apr 2017 13:25:10 +0200 Subject: webclient: Fix auto-scrolling --- webclient/client.html | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'webclient/client.html') 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; } -- cgit v1.2.3-54-g00ecf