mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-52363 qtype ddimageortext: Incorrectly sized drag item
This commit is contained in:
parent
0dfcc2541a
commit
c7cad17b44
4 changed files with 10 additions and 10 deletions
|
@ -255,11 +255,11 @@ Y.extend(DDIMAGEORTEXT_QUESTION, M.qtype_ddimageortext.dd_base_class, {
|
|||
this.pendingid = 'qtype_ddimageortext-' + Math.random().toString(36).slice(2); // Random string.
|
||||
M.util.js_pending(this.pendingid);
|
||||
this.doc = this.doc_structure(this);
|
||||
this.poll_for_image_load(null, false, 0, this.create_all_drag_and_drops);
|
||||
this.poll_for_image_load(null, false, 10, this.create_all_drag_and_drops);
|
||||
this.doc.bg_img().after('load', this.poll_for_image_load, this,
|
||||
false, 0, this.create_all_drag_and_drops);
|
||||
false, 10, this.create_all_drag_and_drops);
|
||||
this.doc.drag_item_homes().after('load', this.poll_for_image_load, this,
|
||||
false, 0, this.create_all_drag_and_drops);
|
||||
false, 10, this.create_all_drag_and_drops);
|
||||
Y.later(500, this, this.reposition_drags_for_question, [this.pendingid], true);
|
||||
},
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -255,11 +255,11 @@ Y.extend(DDIMAGEORTEXT_QUESTION, M.qtype_ddimageortext.dd_base_class, {
|
|||
this.pendingid = 'qtype_ddimageortext-' + Math.random().toString(36).slice(2); // Random string.
|
||||
M.util.js_pending(this.pendingid);
|
||||
this.doc = this.doc_structure(this);
|
||||
this.poll_for_image_load(null, false, 0, this.create_all_drag_and_drops);
|
||||
this.poll_for_image_load(null, false, 10, this.create_all_drag_and_drops);
|
||||
this.doc.bg_img().after('load', this.poll_for_image_load, this,
|
||||
false, 0, this.create_all_drag_and_drops);
|
||||
false, 10, this.create_all_drag_and_drops);
|
||||
this.doc.drag_item_homes().after('load', this.poll_for_image_load, this,
|
||||
false, 0, this.create_all_drag_and_drops);
|
||||
false, 10, this.create_all_drag_and_drops);
|
||||
Y.later(500, this, this.reposition_drags_for_question, [this.pendingid], true);
|
||||
},
|
||||
|
||||
|
|
|
@ -253,11 +253,11 @@ Y.extend(DDIMAGEORTEXT_QUESTION, M.qtype_ddimageortext.dd_base_class, {
|
|||
this.pendingid = 'qtype_ddimageortext-' + Math.random().toString(36).slice(2); // Random string.
|
||||
M.util.js_pending(this.pendingid);
|
||||
this.doc = this.doc_structure(this);
|
||||
this.poll_for_image_load(null, false, 0, this.create_all_drag_and_drops);
|
||||
this.poll_for_image_load(null, false, 10, this.create_all_drag_and_drops);
|
||||
this.doc.bg_img().after('load', this.poll_for_image_load, this,
|
||||
false, 0, this.create_all_drag_and_drops);
|
||||
false, 10, this.create_all_drag_and_drops);
|
||||
this.doc.drag_item_homes().after('load', this.poll_for_image_load, this,
|
||||
false, 0, this.create_all_drag_and_drops);
|
||||
false, 10, this.create_all_drag_and_drops);
|
||||
Y.later(500, this, this.reposition_drags_for_question, [this.pendingid], true);
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue