Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-84652

Anchor Links Jump to Section but Top Portion Hidden behind Dockbar

    Details

      Description

      Description:
      The anchor link to "jump" to a particular point in a web content document, the upper part of the linked text is cut off by the dockbar.

      Steps to Reproduce:
      1. Add portlet.url.anchor.enable=true to the portal-ext.properties
      2. Start Liferay DXP
      3. Add a Web Content Display portlet to a page
      4. Add a Basic Web Content
      5. Create a lengthy web content article, with anchors at the top of the page to jump to various sections of the article (for simplicity, you can add the code from the attached "jumps.html" file which has anchors and texts as an example/demonstration)
      6. Publish the article
      7. Click on any of the links at the top of the page

      Expected Results:
      One should be taken to that portion of the article, being able to see the beginning of the text on the screen. (See attached GIF file for expected behavior when using vanilla HTML without Liferay; expected-behavior.gif)

      Actual Results:
      One is taken to several lines below the top of the section, with the top being blocked behind the dockbar. (See attached GIF file; actual-behavior-master.gif)

        Attachments

        1. actual-behavior-master.gif
          actual-behavior-master.gif
          4.10 MB
        2. expected-behavior.gif
          expected-behavior.gif
          482 kB
        3. jumps.html
          7 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  50 weeks ago

                  Packages

                  Version Package
                  7.0.0 DXP FP59
                  7.0.0 DXP SP9
                  7.0.X
                  7.1.X
                  Master