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 23:44:00 +01:00
committed by Victor Deniz Falcon
parent 64d0d94aeb
commit fea72a6eb3
+6
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) {