Forum Discussion
Embedded report datagrid row heights load with zero height
- 6 years ago
Figured it out for those seeing the same issue. The browser difference is just DOM render speed. I'm using an MV* JS framework (aurelia) and using a show/hide binding that hides the DIV container that contains the iframe. When the embedReport() method runs, I'm using on('rendered') event handler to show the div container with the iframe so we dont see the PBI loader since our site will be more than just PBI and isn't consistant with our styling. So I just changed the show/hide functionality (which is using display:none) to opacity:0 for hide and opacity:1 to show and we're back in business. I'm assuming this is because the iframe contents need a visible element to render properly to the available dimentions which don't really exist when display:none is set.
Hi rkever
The only time I have seen anything similar to this, is when the report accidentally gets saved with a selection/filter/slicer state that isn't valid in the context of the embedded session.
After interactions - the filter/slicer context changes and everything 'appears' again.
if you suspect its a render issue - it's worth testing in alternative browsers to rule out some DOM rendering glitches.
Thanks Anonymous. I did try it on a couple of browsers and it only happens when it's embedded (safari, chrome, and Edge) and does not have this issue when viewing it on app.powerbi.com. We'll see if it's something to do with some invalid state item.