From 450ecdea9daf5ab4b981f60291beb8ea37cd7e59 Mon Sep 17 00:00:00 2001 From: Jamie Pratt Date: Thu, 10 Nov 2011 12:41:23 +0700 Subject: [PATCH] MDL-47494 ddmarker: NOBUG added code to reposition drags every 500ms --- question/type/ddmarker/yui/dd/dd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/type/ddmarker/yui/dd/dd.js b/question/type/ddmarker/yui/dd/dd.js index 02715302ee2..62b7d932789 100644 --- a/question/type/ddmarker/yui/dd/dd.js +++ b/question/type/ddmarker/yui/dd/dd.js @@ -143,7 +143,7 @@ YUI.add('moodle-qtype_ddmarker-dd', function(Y) { }, after_image_load : function () { this.reposition_drags(); - Y.on('windowresize', this.reposition_drags, this); + Y.later(500, this, this.reposition_drags, [], true); // if (!this.get('readonly')) { // this.doc.drags().set('tabIndex', 0); // this.doc.drags().each(