]> git.mjollnir.org Git - moodle.git/commitdiff
quiz editing: MDL-17594 In RTL languages, the editing UI has horizontal scrolling.
authortjhunt <tjhunt>
Thu, 8 Jan 2009 08:06:08 +0000 (08:06 +0000)
committertjhunt <tjhunt>
Thu, 8 Jan 2009 08:06:08 +0000 (08:06 +0000)
Work around YUI bug that is causing this.

mod/quiz/edit.js

index a6520955b6978586dbc177caf7f0c3eb1f382f89..2313af80269e54417e5887b38786f1c0e6848be4 100644 (file)
@@ -52,6 +52,12 @@ function quiz_edit_init() {
 
     quiz_edit.randomquestiondialog.render();
 
+    // Nasty hack, remove once the YUI bug causing MDL-17594 is fixed.
+    // https://sourceforge.net/tracker/index.php?func=detail&aid=2493426&group_id=165715&atid=836476
+    var elementcauseinglayoutproblem = document.getElementById('_yuiResizeMonitor');
+    if (elementcauseinglayoutproblem) {
+        elementcauseinglayoutproblem.style.left = '0px';
+    }
 
     quiz_edit.repaginatedialog = new YAHOO.widget.Dialog("repaginatedialog",
                 {