[FIX] im_chat : scroll down on opening conversation and add scroll bar on user list

This commit is contained in:
Jérome Maes 2014-09-02 16:19:50 +02:00
parent e95aeb659c
commit 7ca76c8ed7
2 changed files with 3 additions and 1 deletions

View File

@ -64,6 +64,8 @@
.oe_im_users { .oe_im_users {
padding-bottom: 38px; padding-bottom: 38px;
height: 100%;
overflow-y: scroll;
} }
.oe_im_user { .oe_im_user {
position: relative; position: relative;

View File

@ -267,7 +267,6 @@
this.set("pending", this.get("pending") + 1); this.set("pending", this.get("pending") + 1);
} }
this.insert_messages([message]); this.insert_messages([message]);
this._go_bottom();
}, },
send_message: function(message, type) { send_message: function(message, type) {
var self = this; var self = this;
@ -325,6 +324,7 @@
}); });
// render and set the content of the chatview // render and set the content of the chatview
this.$('.oe_im_chatview_content_bubbles').html($(openerp.qweb.render("im_chat.Conversation_content", {"list": res}))); this.$('.oe_im_chatview_content_bubbles').html($(openerp.qweb.render("im_chat.Conversation_content", {"list": res})));
this._go_bottom();
}, },
keydown: function(e) { keydown: function(e) {
if(e && e.which !== 13) { if(e && e.which !== 13) {