Sticky navbar and section anchors

Issue #919 resolved
Raymond Reid created an issue

Hi folks,

We can see a issue when the navbar is set to be sticky and you then use a link to a section / anchor, part way down a page.

On clicking such a link the response is that the page goes to the required section, but the title of section appears off the page.

Switching the sticky navbar off and this then works correctly, showing the section title at the top of anchor point.

Any ideas?

We think it is off by the exact amount of pixels which is the height of the sticky navbar.

This is on Adaptable 1.7 on Moodle 3.4.3

See your moodle instance with the following formed URL: https://moodle/course/view.php?id=100#section-2

If this could be fixed we'd be very grateful.

Best regards, Ray Reid.

Comments (9)

  1. Raymond Reid reporter

    Thanks Manoj, if you need any extra information, let me know.

    I've just corrected the original issue, there were some grammatical errors.

    Regards, Ray.

  2. Manoj Solanki

    Hi Raymond,

    I made some changes to fix this. I wouldn't say it's a 100% complete fix but it seems to work in most scenarios. Are you able to get the latest version directly from here in Bitbucket and test it on a test system at all?

    Thanks,

    M

  3. Raymond Reid reporter

    Hi Manoj, I've just taken your changes and applied them to our test site.

    All seems to be working well. I'll get a few testers on it and if all is good will push that out to our production site next week.

    Thanks again, Ray.

  4. Raymond Reid reporter

    Hi Manoj,

    We are going with the fix, but we have noticed that more times than not it appears like in the screenshot

    HotFix919-DisplayingIncorrectly.JPG

    I'd still say it needs a slight tweak.

    Many thanks, Ray Reid.

  5. Log in to comment