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

Stop the annoying mini-offset of body to happen on modal dialogs

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.8.8, 2.9.2, 3.0
    • None
    • HTML and CSS, JavaScript
    • None
    • MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE

    Description

      I've tried to find this issue looking for +modal +scroll but have failed to find it, hence creating it.

      Everytime a modal dialog is shown, the "disabled" body hides any existing scroll bar and, as a result, the whole body is "moved/offset" by some points.

      It's a small, but very annoying issue to get the whole page "vibrating" that way. Would be great to keep body quiet when modals (and we are using them more and more) are used.

      I can reproduce it consistently under both Safari and Chrome with scroll bars enabled.

      Maybe related, I've found this, just in case it helps:

      https://github.com/twbs/bootstrap/issues/9855

      Ciao

      Attachments

        Issue Links

          Activity

            People

              stronk7 Eloy Lafuente (stronk7)
              stronk7 Eloy Lafuente (stronk7)
              Amy Groshek, David Scotson, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: