diff --git a/admin/tool/lp/amd/build/dialogue.min.js b/admin/tool/lp/amd/build/dialogue.min.js index 1bbc5a5e946..7538d6a0aae 100644 --- a/admin/tool/lp/amd/build/dialogue.min.js +++ b/admin/tool/lp/amd/build/dialogue.min.js @@ -1 +1 @@ -define(["core/yui"],function(a){var b=function(b,c,d,e,f){this.yuiDialogue=null;var g=this;"undefined"==typeof f&&(f=!1),a.use("moodle-core-notification","timers",function(){var h="480px";f&&(h="800px"),g.yuiDialogue=new M.core.dialogue({headerContent:b,bodyContent:c,draggable:!0,visible:!1,center:!0,modal:!0,width:h}),g.yuiDialogue.after("visibleChange",function(b){b.newVal?"undefined"!=typeof d&&a.soon(function(){d(g)}):"undefined"!=typeof e&&a.soon(function(){e(g)})}),g.yuiDialogue.show()})};return b.prototype.close=function(){this.yuiDialogue.hide(),this.yuiDialogue.destroy()},b.prototype.getContent=function(){return this.yuiDialogue.bodyNode.getDOMNode()},b}); \ No newline at end of file +define(["core/yui"],function(a){var b=function(b,c,d,e,f){this.yuiDialogue=null;var g=this;"undefined"==typeof f&&(f=!1),a.use("moodle-core-notification","timers",function(){var h="480px";f&&(h="800px"),g.yuiDialogue=new M.core.dialogue({headerContent:b,bodyContent:c,draggable:!0,visible:!1,center:!0,modal:!0,width:h}),g.yuiDialogue.after("visibleChange",function(b){b.newVal?"undefined"!=typeof d&&a.soon(function(){d(g),g.yuiDialogue.centerDialogue()}):"undefined"!=typeof e&&a.soon(function(){e(g)})}),g.yuiDialogue.show()})};return b.prototype.close=function(){this.yuiDialogue.hide(),this.yuiDialogue.destroy()},b.prototype.getContent=function(){return this.yuiDialogue.bodyNode.getDOMNode()},b}); \ No newline at end of file diff --git a/admin/tool/lp/amd/src/dialogue.js b/admin/tool/lp/amd/src/dialogue.js index a5cc6580271..882ee5b6054 100644 --- a/admin/tool/lp/amd/src/dialogue.js +++ b/admin/tool/lp/amd/src/dialogue.js @@ -66,6 +66,7 @@ define(['core/yui'], function(Y) { if ((typeof afterShow !== 'undefined')) { Y.soon(function() { afterShow(parent); + parent.yuiDialogue.centerDialogue(); }); } } else { diff --git a/admin/tool/lp/styles.css b/admin/tool/lp/styles.css index c554324fa9f..54a087f6fe0 100644 --- a/admin/tool/lp/styles.css +++ b/admin/tool/lp/styles.css @@ -55,6 +55,11 @@ text-align: center; } +.path-admin-tool-lp [data-region="competencylinktree"]>ul { + overflow-y: auto; + height: 400px; +} + .dir-rtl.path-admin-tool-lp [data-region="filtercompetencies"] input { margin-right: 10px; }