Closed k0nsun closed 2 months ago
It is not supported to switch the layout from MobilePortrait
to MobileLandscape
, you need to first call powerbi.reset() to remove the iframe and then use powerbi.embed() with the same container.
For more information, refer to this documentation: Embedding a Power BI report with mobile layout in Power BI embedded analytics | Microsoft Learn
When we use the "LayoutSwitch" function, the landscape view does not always work.
The settings used:
Here the code to change the layout (simplify):
Small details:
Do you have any work-around to make it work as it is supposed to? Thanks in advance. Bug_Landscape_Portrait.zip