init chat view

This commit is contained in:
OldHawk
2017-05-09 19:02:22 +08:00
parent 52a31c164d
commit 8a038a2c07
6 changed files with 131 additions and 28 deletions

View File

@@ -51,5 +51,13 @@
// Clear the message text
vm.messageText = '';
}
vm.initChatView = function () {
var e = angular.element('.chat-message-list');
var u = angular.element('.chat-user-list');
var h = document.documentElement.clientHeight - 50 - 88 - 16;
e.css('height', h + 'px');
u.css('height', h + 'px');
};
}
}());