In my c# program,I use System.Process to open msedge.exe with in app mode.I used --window-size to control the msedge window's size.However,when i open an new site in the mainwindow by the window.open function,the childwindow is the same as the mainwindow's size. Even I set the size for the childwindow,it doesn't work.
Why the childwindow be the same with the maniwindow?
The detail like the follow:
1.In C# ,open msedge.exe in app mode
string arg = " --window-position=10,10 --window-size=300,300 " + "--app" + "=" + "http://XXXX/sample.jsp"
process.StartInfo.FileName = "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe";
process.StartInfo.Arguments = arg;
2.In sample.jsp page,I excute the follow to open a new site.
window.open('" + XXXX+ "','" + windowName + "','toolbar=no,scrollbars=no,location=no,status=no,menubar=no,resizable=no,left=0,top=0,width=100,height=100')
3.The new childwindow is always same with the sample.jsp window's size.
Is there anyway to solve this problem? How can I contorl the childwindow's size that isn't be same to the mainwindow.