I tried following things to Remove Scroll bar ( because I need to get full content height)? There is an option called pageView='fitToWidth' to set full width (https://github.com/Pawani-DeSilva/powerbi-report-component/commit/238e91cfa0730fd9c3f5f7588a363aa6b31956bc) . It works as expected. My issue is related to height.
This is my learning
I cannot directly use https://github.com/microsoft/PowerBI-JavaScript) creates iFrame using javascript. https://github.com/microsoft/PowerBI-JavaScript/blob/master/src/dashboard.ts#L51
browsers don't allow us to access DOM content of cross-domain iframe. Without accessing the DOM, I cannot get the content height. https://stackoverflow.com/a/6170976
- PowerBI does not have a proper solution to set content height. They have only fit to width. https://community.powerbi.com/t5/Service/iframe-scaling-issue/td-p/219827 https://community.powerbi.com/t5/Report-Server/Turn-off-Horizontal-and-Vertical-scroll-bars-with-Filter-Pane/m-p/832461 (edited)