I'm trying to figure out how I can create probably a script that can automatically resize an Excel Web Access web part based on the size of its content, mainly so that the scrollbars that appear when the content is too big will disappear.
I've found a few links below:
- JQuery for Everyone: Dynamically Sizing Excel Web Parts
- Technet Forums: How can I resize the size of the Excel web part?
- Automatically resizing Sharepoint Excel Web Parts
but they haven't worked for me ... probably because all of those are targeting SharePoint 2010? I'm using SharePoint 2013 and I saw that they are talking about iFrames but when I inspected my web parts via developer tools, I can't see any iFrames but just<div>.
So I tried experimenting on my own, with the first simple step of just manually editing the styles via the DOM Explorer of Internet Explorer. I thought it was as simple as changing the height attribute like below:
But it doesn't work!
I tried to find articles for this but couldn't find any. So probably my questions would be:
- Why doesn't just increasing the inline style directly change the web part size? I suspect there are other stylings at work here. But if so, what are they? I'm not really a Front-End developer so I'm a little bit confused.
- Are the articles I posted really not applicable to SharePoint 2013? Were there changes in how SharePoint renders web parts from 2010 to 2013?
- Lastly, are there any articles that have already been posted on automatically resizing web parts in SharePoint 2013? Can you please share them if you have? If not, could you direct me towards how to do automatic resizing of web parts in SharePoint 2013?