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.
This commit is contained in:
Sara Arjona 2020-08-20 14:23:20 +02:00 committed by Victor Deniz Falcon
parent 5e60d77da1
commit 69846652f1

View File

@ -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) {