I am trying to put a web browser in a dashboard. That’s of course easy enough, but my issue is that I do not know in advance how big the destination of the iframe will be.
I am trying to
- have the page loaded,
- have a ‘ready’ event which will look at the size of the embedded element,
- resize what needs to be resized based on this height.
I can access the dashboard object and set its height property, but it has no effect at all:
dash_promise = this.getService('DashboardService').getDashboardById(this.id);
dash_promise.done(function(dash){
dash.height=2000;
})
I tried both with template/responsive mode and no template/scroll mode.
I can change the height of the dundas.view.controls.WebBrowser component (.height=2000) that’s easy. But as the dashboard stays small it only solves half of my problem.
The context is that this dashboard will be exported to an image, so scrolling is not an option.
Is there a way to resize the full dashboard?