chatview: fix scroll behavior
* auto scroll to end
* align messages to bottom
Change-Id: I85227c5ca53e26c9d50e53c356de46392890b0cf
Reviewed-by: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
diff --git a/web/chatview.css b/web/chatview.css
index e0e2d63..9beaa65 100644
--- a/web/chatview.css
+++ b/web/chatview.css
@@ -1,4 +1,19 @@
body {
+ margin: 0;
+}
+
+#container {
+ position: relative;
+ height: 100%;
+ width: 100%;
+}
+
+#messages {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ max-height: 100%;
+ width: 100%;
overflow-y: scroll;
}