From 887efbd9398a38811040b2598bf85548b253e389 Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Thu, 20 Aug 2020 14:23:20 +0200 Subject: [PATCH] MDL-42434 mod_chat: display the whole help text When testing this issue was raised that the help text was cut-off. This patch should fix this issue changing the placement from right/left to top. --- mod/chat/gui_ajax/module.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mod/chat/gui_ajax/module.js b/mod/chat/gui_ajax/module.js index 06819d8d9c8..231392f4a15 100644 --- a/mod/chat/gui_ajax/module.js +++ b/mod/chat/gui_ajax/module.js @@ -126,6 +126,12 @@ M.mod_chat_ajax.init = function(Y, cfg) { this.moveTo((e.pageX - 20), (e.pageY - 20)); this.show(); }, this.thememenu); + + // Set the data-placement for the help-icon to display all the content. + this.helpicon = Y.one('#button-send + a'); + this.dataset = this.helpicon.get('dataset'); + this.dataset.placement = 'top'; + this.helpicon.set('dataset', this.dataset); }, append_message : function(key, message, row) { -- 2.43.0