← Back to team overview

mahara-contributors team mailing list archive

[Bug 1833390] Re: Anchor hides behind header

 

When testing, test with:

- productionmode = false
- productionmode = true
- each of the above also when masquerading as another user so as to get more site messages to display.

The anchor should always be displayed below the final header.

** Changed in: mahara/19.10
       Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1833390

Title:
  Anchor hides behind header

Status in Mahara:
  In Progress
Status in Mahara 19.04 series:
  Confirmed
Status in Mahara 19.10 series:
  In Progress

Bug description:
  when you place an anchor into text and jump to it, the anchored text
  is not displayed, but you need to scroll a bit up to see it. The
  anchor link jumps all the way to the top of the view port. That places
  the anchor behind the top header with the logo and the navigation.
  Instead, the anchor should take that strip into consideration and
  display the text right below it thus effectively making the viewport
  smaller.

  The tricky thing here will be to take into consideration that the
  height of the header can vary depending on the site messages that are
  displayed.

  To replicate:

  1. Create a page with a very long text, e.g. created via https://www.lipsum.com
  2. Create an anchor in the text in the second paragraph.
  3. Link to the anchor further down in the text.
  4. Click "Display this page" and scroll down to the link.
  5. Click the link.
  Expected result: The text to which the anchor points is displayed.
  Actual result: A few lines further down from the anchor are visible at the edge of the header and the anchor itself needs to be scrolled to as it is hidden by the header.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1833390/+subscriptions


References