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

Improve positioning of page when #anchors in use on bootstrapbase themes to take account of header

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1
    • 2.9.4, 3.0.2, 3.1
    • Themes
    • MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
    • MOODLE_31_STABLE
    • MDL-53049-anchor-offset
    • Hide

      Specific places in moodle to test both as < 980 (which should be flush with the top) and > 980 pixel screen widths which should add the extra padding to sit under the static header:

      1. forum deep link to post eg /mod/forum/discuss.php?d=2&postid=80#p80
      2. wiki table of contents eg /mod/wiki/view.php?pageid=3&group=0#toc-1
      Show
      Specific places in moodle to test both as < 980 (which should be flush with the top) and > 980 pixel screen widths which should add the extra padding to sit under the static header: forum deep link to post eg /mod/forum/discuss.php?d=2&postid=80#p80 wiki table of contents eg /mod/wiki/view.php?pageid=3&group=0#toc-1

      With the default theme, and probably most themes based on it, when you deep link into a forum post with a #anchor link, the anchor aligns perfectly flush with the top of the browser window.

      However the bootstrap top bar covers this so the post you are trying to look at is partially obscured.

      See the screen shot below (note in that screenshot there is some styling related to this issue which highlights the target post, see also MDL-53050)

        1. linktest.php
          2 kB
          Brendan Heywood
        2. screenshot-1.png
          105 kB
          Brendan Heywood

            brendanheywood Brendan Heywood
            brendanheywood Brendan Heywood
            Andrew Lyons Andrew Lyons
            Dan Poltawski Dan Poltawski
            John Okely John Okely
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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