diff --git a/question/type/ddmarker/yui/form/form.js b/question/type/ddmarker/yui/form/form.js index 88ffd6dd186..2705dc70cb3 100644 --- a/question/type/ddmarker/yui/form/form.js +++ b/question/type/ddmarker/yui/form/form.js @@ -87,6 +87,7 @@ YUI.add('moodle-qtype_ddmarker-form', function(Y) { } var markerspan = Y.one('div.ddarea div.markertexts span.markertext'+dropzoneno); markerspan.setStyle('opacity', '0.6'); + xyfortext[1] -= Math.round(markerspan.get('offsetHeight') / 2); markerspan.setXY(this.convert_to_window_xy(xyfortext)); } }