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

Mod chooser causes a jump in scroll position when first used.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6.2
    • Component/s: JavaScript
    • Labels:
    • Testing Instructions:
      Hide
      1. Log in as an admin
      2. Browse to a course that requires scrolling to get to the bottom section.
      3. Turn on editing
      4. Scroll down to the bottom section and click to add an activity.
      5. Check that the dialogue is displayed correctly and that your scroll position remains.
      6. Click cancel
      7. Repeat the above step and check your scroll post stays the same still.
      8. Test the above in standard + clean (at least those two)
      9. Select to edit the settings for the course.
      10. Open the file manager, check it is displayed correctly.
      11. Edit lib/ajax/getnavbranch.php and add a coding_exception to line 35.
      12. Try to expand the courses branch in the navigation
      13. Check you get an exception thrown.
      14. Repeat in supported browsers, including mobile browsers.
      Show
      Log in as an admin Browse to a course that requires scrolling to get to the bottom section. Turn on editing Scroll down to the bottom section and click to add an activity. Check that the dialogue is displayed correctly and that your scroll position remains. Click cancel Repeat the above step and check your scroll post stays the same still. Test the above in standard + clean (at least those two) Select to edit the settings for the course. Open the file manager, check it is displayed correctly. Edit lib/ajax/getnavbranch.php and add a coding_exception to line 35. Try to expand the courses branch in the navigation Check you get an exception thrown. Repeat in supported browsers, including mobile browsers.
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:
      43598-43262-27
    • Story Points:
      5
    • Sprint:
      FRONTEND Sprint 8

      Description

      There is a bug somewhere in one of the following modules:

      • modchooser
      • chooserdialogue
      • dialogue

      To reproduce:

      1. Log in as an admin
      2. Browse to a course that requires scrolling to get to the bottom section.
      3. Turn on editing
      4. Scroll down to the bottom section and click to add an activity.
      5. Notice that the scroll position jumps up the screen (usually to the top but depends upon your browser).

      Of interest in all browsers except Chrome I've observed that this only happens the first time the dialogue is disabled.
      In Chrome it seems to jump up each time you open the dialogue.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Mar/14