Sharepoint Online is not retaining Web Part Height setting for Embedded Excel Web Access Object

dtaraboletti 0 Reputation points
2023-06-01T17:45:17.3566667+00:00

Within Sharepoint Online, I have embedded an Excel Web Access object (Graph) which is sourced from a XLS file saved within the same Sharepoint site. The graph is appearing within the published page, but the full vertical height of the graph (object) is not being displayed.

I have gone into the Sharepoint, Edit Web Part/Appearance panel, and set the value to "Adjust Height to Fit Zone"... as shown below...

User's image

However, upon saving and publishing the page, this setting keeps reverting back to the fixed height of 400 pixels.

Has anyone experienced this problem? It clearly presents as a bug within the service.

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | Development | Microsoft 365 Publishing
Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xyza Xue_MSFT 30,176 Reputation points Microsoft External Staff
    2023-06-02T02:38:08.97+00:00

    Hi @dtaraboletti ,

    From your description, you want to adjust the Excel Web Access web part height to fit the content. You set the value to "Adjust Height to Fit Zone",but this setting keeps reverting back to the fixed height of 400 pixels.

    I could reproduce your issue in my environment.

    As a workaround, you can use CSS code to adjust the height of the Excel Web Access web part. You can add a Content Editor Web part into the page, then add this code below into the HTML source of the content editor web part:

    <style>
    #WebPartWPQ2 {
        height:auto !important;
    }
    div[id$='sheetContentDiv']{
        height:auto !important;
    }
    </style> 
    
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.


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.