Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-53350

Intermittent positioning issue in drag-drop questions when reviewing in Chrome

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.0.3
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide

      This but was very hard to reproduce. I suggest you try to reproduce it before you try to test the fix.

      1. You must be using Chrome for this.
      2. It is probably easier to reproduce if you are using a test server across a network, not a localhost install.
      3. Create a quiz and add many (10) drag-drop into text question. (Make one, duplicate several times with small edits.)
      4. Attempt the quiz, answering the questions, then submit.
      5. On the review page, ensure that all the drag items are displayed correctly positioned. (With the bug, sometimes they appeared in the wrong position vertically, but the right horizontal position - see screen grab.)
      6. Reload the review page several times, bother with F5, and also by clicking in the URL bar and pressing enter. After each reload, verify the drag items are correctly positioned.
      7. Check in the JavaScript console to verify there are no errors.
      Show
      This but was very hard to reproduce. I suggest you try to reproduce it before you try to test the fix. You must be using Chrome for this. It is probably easier to reproduce if you are using a test server across a network, not a localhost install. Create a quiz and add many (10) drag-drop into text question. (Make one, duplicate several times with small edits.) Attempt the quiz, answering the questions, then submit. On the review page, ensure that all the drag items are displayed correctly positioned. (With the bug, sometimes they appeared in the wrong position vertically, but the right horizontal position - see screen grab.) Reload the review page several times, bother with F5, and also by clicking in the URL bar and pressing enter. After each reload, verify the drag items are correctly positioned. Check in the JavaScript console to verify there are no errors.
    • Affected Branches:
      MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      This is a follow-up to MDL-52365. That stopped the continual re-positioning of drag items in review mode, to improve performance.

      Unfortunately, when the quiz review page is slow to load, the page layout can still be changing after the drag items are positioned, and then they end up in the wrong place.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              timhunt Tim Hunt
              Peer reviewer:
              Mahmoud Kassaei Mahmoud Kassaei
              Integrator:
              David Monllaó David Monllaó
              Tester:
              Ryan Wyllie Ryan Wyllie
              Participants:
              Component watchers:
              Tim Hunt, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Mar/16