mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #54546
[Bug 1833390] Re: Anchor hides behind header
Commit hash: 399f99f9a4cb0b0fb26a88a6fa4a3bcdd184dddb
Environment tested: Master
Browser tested: Chrome
Theme used: Raw | Default raw | Ocean | Modern | Primary school
PRECONDITIONS:
------------------------
1) Set config.php file code to have the following line $cfg->productionmode = false;
2) User3 Exists and has a portfolio page as follows:
a) 5 paragraphs of text
b) a link near top of page to an anchor near the bottom of the page
TEST STEPS: Set config.php file code to have the following line $cfg->productionmode = false;
------------------------
1) Log in as Site admin
2) Masquerade as User3
3) Browse to the Portfolio page as described above
4) click the link near the top of the page
5) Verify that the page scrolls down to anchor (near bottom of page ✔
6) Verify the anchored text is displayed ✔
7) Verify the anchor is not hidden behind the top header with the logo and the navigation ✔
8) Log out and log back in as User3
9) Browse to the Portfolio page as described above
10) click the link near the top of the page
11) Verify that the page scrolls down to anchor (near bottom of page ✔
12) Verify the anchored text is displayed ✔
13) Verify the anchor is not hidden behind the top header with the logo and the navigation ✔
NOTE:
1) Set config.php file code to have the following line $cfg->productionmode = true;
2) Repeat the above test script
3) Verify that the page scrolls down to anchor (near bottom of page ✔
4) Verify the anchored text is displayed ✔
5) Verify the anchor is not hidden behind the top header with the logo and the navigation ✔
Catalyst QA ✔
--
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