Good morning Debuggers,
Today I would like to present you a neat way how to start a Document Viewer in your BPM Coach in maximized mode. Per default, the Document Viewer is displayed quite small and to extend it, one has to click the button to maximize it.
That can sometimes be a bit inconvenient.
Hence I thought I would share with you the steps to take to start it maximized by default.
First of all, you will have to create a custom Coach View. In my case I named it Custom Document Viewer.
Now, access the "view" Event Handler as shown above.
Append the following line of code at the end of the code on the right hand side:
iframeElement.style.height = window.innerHeight - 100 + 'px';
This will load the Document Viewer in maximized mode when your coach is being loaded:
That's basically it. Now your Document Viewer will be maximized and your users won't have to click the maximize button anymore.
And if this does not help, take two of these and call me in the morning.
Your Doc D