aboutsummaryrefslogtreecommitdiff
path: root/webclient
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-04-04 13:25:10 +0200
committertomsmeding <tom.smeding@gmail.com>2017-04-04 13:25:10 +0200
commit93a75abb1daaf2d4dfa59c348d6a08d8ca0c9659 (patch)
tree2f81888541adea55d2c1a06bcfa0e7c63616f99d /webclient
parent46d4be01ced73e2da12ef6dbe711fda86eeaecbd (diff)
webclient: Fix auto-scrolling
Diffstat (limited to 'webclient')
-rw-r--r--webclient/client.html7
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;
}