From 4b549f07a5cd9a711618aedfac458e9ed83cdc47 Mon Sep 17 00:00:00 2001 From: Jamie Pratt Date: Sat, 29 Oct 2011 12:33:49 +0700 Subject: [PATCH] MDL-47494 ddmarker: NOBUG centering marker text. --- question/type/ddmarker/yui/form/form.js | 1 + 1 file changed, 1 insertion(+) 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)); } }