diff --git a/addons/web_im/static/src/js/im.js b/addons/web_im/static/src/js/im.js index b811aea9593..a709a727334 100644 --- a/addons/web_im/static/src/js/im.js +++ b/addons/web_im/static/src/js/im.js @@ -228,7 +228,8 @@ openerp.web_im = function(instance) { date = instance.web.str_to_datetime(date); date = date.toString(Date.CultureInfo.formatPatterns.shortDate + " " + Date.CultureInfo.formatPatterns.shortTime); var bubble = QWeb.render("Conversation.bubble", {"items": items, "name": name, "time": date}); - this.$(".oe_im_chatview_content").append($(bubble)); + $(this.$(".oe_im_chatview_content").children()[0]).append($(bubble)); + this.$(".oe_im_chatview_content").scrollTop($(this.$(".oe_im_chatview_content").children()[0]).height()); }, destroy: function() { this.trigger("destroyed"); diff --git a/addons/web_im/static/src/xml/im.xml b/addons/web_im/static/src/xml/im.xml index 2f7d450db35..38348d5952b 100644 --- a/addons/web_im/static/src/xml/im.xml +++ b/addons/web_im/static/src/xml/im.xml @@ -35,7 +35,9 @@
-
+
+
+