Skip to content

Commit

Permalink
MDL-42434 mod_chat: display the whole help text
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sarjona authored and vmdef committed Aug 20, 2020
1 parent 5e60d77 commit 6984665
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mod/chat/gui_ajax/module.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 6984665

Please sign in to comment.