Formatting

This commit is contained in:
Kegan Dougal 2014-08-15 17:58:51 +01:00
parent 0e6a2f87f9
commit 60a9f27edb
2 changed files with 22 additions and 21 deletions

View File

@ -24,7 +24,7 @@ angular.module('RoomController', [])
element = el; element = el;
} }
this.addItem = function(item){ this.addItem = function(item){
element.scrollTop = (element.scrollTop+item.clientHeight+1); //1px for margin element.scrollTop = (element.scrollTop + item.clientHeight);
}; };
}, },
link : function(scope, el, attr, ctrl) { link : function(scope, el, attr, ctrl) {

View File

@ -63,7 +63,7 @@
<button ng-click="send()">Send</button> <button ng-click="send()">Send</button>
</td> </td>
<td width="1"> <td width="1">
{{ feedback }}
</td> </td>
</tr> </tr>
<tr> <tr>
@ -87,6 +87,7 @@
</span> </span>
<button ng-click="leaveRoom()">Leave</button> <button ng-click="leaveRoom()">Leave</button>
<button ng-click="loadMoreHistory()" ng-disabled="!state.can_paginate">Load more history</button> <button ng-click="loadMoreHistory()" ng-disabled="!state.can_paginate">Load more history</button>
{{ feedback }}
<div ng-hide="!state.stream_failure"> <div ng-hide="!state.stream_failure">
{{ state.stream_failure.data.error || "Connection failure" }} {{ state.stream_failure.data.error || "Connection failure" }}
</div> </div>