HTML5 Client: How to maximize the browser window
Overview
The RDP protocol does not allow to resize while connected without a reconnection.
Please note that you will get the best experience possible from RDPlus HTML5 client by connecting with a maximized browser.
However, if you want to force the browser window to be as big as possible, you can try to “force” the HTML5 window to open with the maximum size (but not as a “maximized” window, due to internet browsers security limitations).
Maximizing the browser window
You will have to modify the file “Clients\www\software\common.js” located in your RDPlus directory. We advise you to use a text editor such as Notepad++ (do not use Word).
In order to have a browser window which uses all the screen, you will have to modify the line(s) with “window.open” in it, and add the following text:
, "screenX=0,screenY=0,left=0,top=0,fullscreen=yes,width="+(screen.availWidth-5)+",height="+(screen.availHeight-(55))
This allows IE/Chrome/Firefox/Safari to open the window with a screen size (minus Windows bar). Unfortunately it is not possible to force a web browser to “maximize” the window in a “fullscreen” Windows type.
Open the file and search “window.open(“
Then add the new at the end before the brackets, for example:
window.open(hostGateway + jwtsclickLinkBefore(getside(), p), window.opforfalse);
will become:
window.open(hostGateway + jwtsclickLinkBefore(getside(), p), window.opforfalse, "screenX=0,screenY=0,left=0,top=0,fullscreen=yes,width="+(screen.availWidth-5)+",height="+(screen.availHeight-(55)));
And again:
tmpwin = window.open(p, '_blank'); //Chrome needs _blank
will become:
tmpwin = window.open(p, '_blank', "screenX=0,screenY=0,left=0,top=0,fullscreen=yes,width="+(screen.availWidth-5)+",height="+(screen.availHeight-(55))); //Chrome needs _blank
And again:
success = window.open(p, k);
will become:
success = window.open(p, k, "screenX=0,screenY=0,left=0,top=0,fullscreen=yes,width="+(screen.availWidth-5)+",height="+(screen.availHeight-(55)));
And finally :
cpwin = window.open("about:blank", n);
will become:
cpwin = window.open("about:blank", n, "screenX=0,screenY=0,left=0,top=0,fullscreen=yes,width="+(screen.availWidth-5)+",height="+(screen.availHeight-(55)));