Przeglądaj źródła

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 lat temu
rodzic
commit
235f89cdb2
1 zmienionych plików z 8 dodań i 0 usunięć
  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) {