MDL-47494 ddimageortext: NOBUG wait a little longer for page to settle down after images loaded. This

seems to be necessary because after the tinymce editor loads xy coords all
change.
This commit is contained in:
Jamie Pratt
2011-09-01 17:19:24 +07:00
parent 5a641fe31e
commit 8c2bf1f0d7
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ YUI.add('moodle-qtype_ddimagetoimage-dd', function(Y) {
} else if (this.polltimer === null) {
var pollarguments = [null, waitforimageconstrain, pause, doafterwords];
this.polltimer =
Y.later(500, this, this.poll_for_image_load, pollarguments, true);
Y.later(1000, this, this.poll_for_image_load, pollarguments, true);
}
},
/**
+2 -2
View File
@@ -40,9 +40,9 @@ YUI.add('moodle-qtype_ddimagetoimage-form', function(Y) {
this.doc.drag_image_homes()
.on('load', this.constrain_image_size, this, 'dragimage');
this.doc.bg_img().after('load', this.poll_for_image_load, this,
true, 1000, this.after_all_images_loaded);
true, 3000, this.after_all_images_loaded);
this.doc.drag_image_homes() .after('load', this.poll_for_image_load, this,
true, 1000, this.after_all_images_loaded);
true, 3000, this.after_all_images_loaded);
} else {
this.setup_form_events();
}