From 2cb2d3b6b4db3a8b974278d8a697eaf8a8b4274d Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Thu, 22 Jan 2015 17:21:47 +0000 Subject: [PATCH] MDL-47494 ddmarker: Remove no longer necessary Chrome hack. #12732 This was causing weird scroll behaviour all of a sudden. --- question/type/ddmarker/yui/dd/dd.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/question/type/ddmarker/yui/dd/dd.js b/question/type/ddmarker/yui/dd/dd.js index ba62941a0fa..f983bbd2ad1 100644 --- a/question/type/ddmarker/yui/dd/dd.js +++ b/question/type/ddmarker/yui/dd/dd.js @@ -437,16 +437,6 @@ YUI.add('moodle-qtype_ddmarker-dd', function(Y) { d.shape, d.coords, colourfordropzone, true); } } - if (YUI.Env.UA.webkit) { - // Webkit (Chrome, Safari, Android) has a repaint bug. This is a - // work-around. See, for example, - // http://stackoverflow.com/questions/3485365/how-can-i-force-webkit-to-redraw-repaint-to-propagate-style-changes - var outer = this.doc.top_node().one('div.ddarea'); - var oldDisplay = outer.getStyle('display'); - outer.setStyle('display', 'none'); - outer.get('offsetHeight'); - outer.setStyle('display', oldDisplay); - } }, /** * Determine what drag items need to be shown and