SharePoint O365 document library Browser jumps up when clicking on ellipsis on an attachment

Wan Feng 1 Reputation point
2020-09-24T00:26:11.337+00:00

At SharePoint O365 document library, click on ellipsis open up the document preview, click on another ellipsis should open the menu to download, delete etc. The browser jumps up to top to display the menu, instead of display the menu but stay in place.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,567 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Echo Du_MSFT 17,156 Reputation points
    2020-09-24T08:00:54.157+00:00

    @Wan Feng

    You can use the File Viewer Web Part to display content of files on current page.
    Note: The File Viewer web part only working in SharePoint Online modern experience.

    Please follow these steps:

    1.Create a Modern SharePoint page
    Open your SharePoint Online modern site >> click Settings menu >> click Add a page
    27944-web1.png

    2.Edit this page
    a) Click + Sign, and then add New section “Two Column” from the Section layout.
    27945-web2.png

    b) In the column-section1, click + sign>> select “Document library” from the web part toolbox>> select the relative Document Library from the list of Document Libraries
    c) In the column-section2, click + sign>> select “File Viewer” from the web part toolbox.
    27840-web3.png

    d) After you finish performing step 2, the below screen will appear:
    27991-web4.png

    3.Edit the File Viewer Modern Web part
    a) After you select the File Viewer Modern Web part >> click Edit Web part option >> click ... sign on the File viewer pane, and then click “Connect to Source” >> select the relative Document Library
    27878-web5.png

    b) When you select a file, the page will display the content of the file.
    27955-web6.png

    Thanks,
    Echo Du

    ==============

    @Wan Feng

    …………………………Updated Answer…………………………

    Please following steps:

    1.Go to the Document Library, select Edit page under the Settings menu.
    2.Click "Add a Web Part" link >> select "Media and Content" node>> add "Script Editor" web part
    31233-1.png

    3.On the Script Editor web part, click "EDIT SNIPPET" link
    4.On the Emned dialog , entry the following script >> click "Insert" Button
    31150-2.png

    5.Click "Stop Editing" button in the top menu bar to save page.
    31251-3.png

    Thanks,
    Echo Du

    ================

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Wan Feng 1 Reputation point
    2020-09-25T01:30:05.75+00:00

    Thanks for your response.
    Your suggestion is not related to my issue.
    Problem is not about document preview, it is about the drop down menu bar that jumps to the top.

    BTW, my client doesn't like modern experience.


  3. Wan Feng 1 Reputation point
    2020-09-27T03:39:20.647+00:00

    Please see the screen shot.

    First, click on the ellipsis to open up Document Preview for an attachment in a document library, at bottom of the page

    28467-click-on-doucment-preview-ellipsis.jpg

    then click on another ellipsis which should display menu but the menu jumps to top of the page

    28512-menu-jumps-to-top-of-the-page.jpg


  4. Wan Feng 1 Reputation point
    2020-09-28T12:57:21.72+00:00

    Thanks for your detailed steps. It does remove document preview, which most users don't like.

    But the click on the ellipsis on the attachment, the menu jumps to the top of the page still happens.
    Also caused bigger issue that I can't open a different tab on my customized form.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.