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:
+1
-1
@@ -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
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user