-
Bug
-
Resolution: Fixed
-
Minor
-
3.6.1
-
MOODLE_36_STABLE
-
MOODLE_36_STABLE
-
Steps to reproduce
===============
- Use Firefox.
- Create a new quiz. Give it a name (e.g. "A Quiz"). Save and Display.
- Edit Quiz and Add a New Question. Choose Drag and Drop onto Image.
- Give the question a name (e.g. "Drag-and-Drop Image Question").
- Give the question some text (e.g. "Drag the hand to the coffee mug handle.")
- Upload mug.jpg as the Background Image.
- In Draggable Items, upload hand.jpg.
- Save Changes and Continue Editing.
- In Drop Zones, set {Left: 340, Top: 160, hand.jpg).
- Save Changes.
- Attempt the quiz.
- (Quiz Question Page) Positioning of hand.jpg item is fine on initial page load.
- Refresh the page. Positioning of item is no longer fine (not centered).
- Resize the window. The item will jump to where it's supposed to be.
- Refresh the page. Positioning of item is no longer fine (not centered).
- If you drag the item slightly and let go, the item jumps to the correct position.
- Drag the hand.jpg item to the mug.jpg answer position.
- Click Finish Attempt, and Submit All to Finish.
- (Quiz Review Page) On initial page load, the hand.jpg is sometimes in the wrong position on quiz review page.
- Refresh the page. Positioning of the item is no longer fine (slightly offset from answer position).
- Resize the window. The item will jump to where it's supposed to be.
- (Any Quiz Page) Toggle the Boost drawer menu. The answer box position moves with the drawer and is hence not positioned where it's supposed to be.
Actual result
==========
Behavior:
- Quiz items in Drag-and-Drop-Onto-Image questions always have incorrect positions on page refresh (and sometimes on initial load of the quiz review page) (using Firefox).
- Quiz items' answer box positions are incorrect when the Boost drawer is opened/closed.
Expected result
============
Quiz items and their answer boxes should have consistent positions and not be misaligned with what was set in the question settings.
Other points
==========
- Possibly related issue:
MDL-58260 - A hard refresh (Shift-Refresh) will always load items and the answer boxes in the right position.
- A temporary fix would be to add this to your jQuery:
$(window).bind("load", function() { |
$(window).trigger("resize"); |
});
|
- has a non-specific relationship to
-
MDL-63297 Convert drag-drop onto image question type JS from YUI to AMD
-
- Closed
-