浏览代码

prevent the input box from getting out of view.

though maybe change the scrolling thing later. don't scroll when we have
scrolled ourselves?
Lucas Stadler 11 年之前
父节点
当前提交
235f89cdb2
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      js/babl/public/index.html

+ 8 - 0
js/babl/public/index.html

@ -3,6 +3,13 @@
3 3
	<head>
4 4
		<title>babl</title>
5 5
		<meta charset="utf-8" />
6
7
		<style type="text/css">
8
			#input {
9
				float: left;
10
				width: 100%;
11
			}
12
		</style>
6 13
	</head>
7 14
8 15
	<body>
@ -30,6 +37,7 @@
30 37
				var msgDate = new Date(msg.timestamp);
31 38
				msgEl.textContent = msgDate.toLocaleTimeString() + " - " + msg.author + ": " + msg.content;
32 39
				messagesEl.appendChild(msgEl);
40
				msgEl.scrollIntoView();
33 41
			}
34 42
35 43
			function handleMessage(msg) {