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

Prevent page from scrolling when activity chooser is open

XMLWordPrintable

    • MOODLE_23_STABLE
    • MOODLE_23_STABLE
    • MDL-33649-master-2
    • Hide

      In as many browsers as possible (at least IE and non-IE).

      • Open course page
        • Confirm that the page can be scrolled
      • Turn editing on
        • Confirm that the page can be scrolled
      • Open the activity chooser
        • Confirm that the page can no longer be scrolled
      • Close the activity chooser
        • Confirm that the page can be scrolled again
      • Move down the page a little
        • Confirm that the page can be scrolled
      • Open the activity chooser
        • Confirm that the page can no longer be scrolled
      • Close the activity chooser
        • Confirm that the page can be scrolled again

      We run the test a second time slightly further down the page to ensure that there are no weird effects if the page is not at the top.

      Show
      In as many browsers as possible (at least IE and non-IE). Open course page Confirm that the page can be scrolled Turn editing on Confirm that the page can be scrolled Open the activity chooser Confirm that the page can no longer be scrolled Close the activity chooser Confirm that the page can be scrolled again Move down the page a little Confirm that the page can be scrolled Open the activity chooser Confirm that the page can no longer be scrolled Close the activity chooser Confirm that the page can be scrolled again We run the test a second time slightly further down the page to ensure that there are no weird effects if the page is not at the top.

      Eloy suggested that we should prevent the page from scrolling when the activity chooser is open, and I've just discovered how this can be done. For most browsers, it should be as simple as setting the body overflow to hidden whilst the viewer is open. IE is slightly more frustrating and needs the overflow changing to hidden for the HTML tag rather than the body tag and needs to be changed back to 'scroll' instead of 'visible'. Helpful.

      I have a patch for this, though I appreciate it's really a bit too late in the day to be integrating this for 2.3 (though it would really enhance usability if it were integrated).

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            Ruslan Kabalin Ruslan Kabalin
            Aparup Banerjee Aparup Banerjee
            Frédéric Massart Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.