Run Web App maximized (fill browser window) by default?

There is a feature for "maximizing" the web app window inside the browser:
Capture.PNG
Is there a way to have the apps run in "full browser size" mode by default, rather than the client having to click the maximize button?

10 comentarios

Same thing here would love to have an answer
set(app.UIFigure,'WindowState','maximized');
There is also a fullscreen option
Thanks but as of 2019b, the windowstate has no effect on the web app window.
That is strange. I have used this in R2019b and it works for me.
I put this in the startupFcn.
If you continue have this issues, try to install the latest updates for R2019b, perhaps this was a bug that is fixed.
@Mohammad, are you referring to web apps specifically? Or running the app within the Matlab environment? I noticed that the html container in each case appear to be different, so I'm not sure if the "windowstate" property exists or has the same behavior for the web apps container...
But, admittledly I do not do minor version updates so my experience is limited to R2019b rev 0 and hopefully it is moot going forwad. It would be nice to get TMW staff input here, but it doesn't appear as a fixed bug listed here: https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/updates/r2019b/r2019b-updates-release-notes.pdf
I have 2020a now, but won't be able to test the web apps for a while until I update my web app server. I'll try to remember to update this question when I am able to test with 2020a.
I have Matlab R2019b fully updated version.
This command works only when you run the app within the matlab environment. When you lauch the webapp the command doesn't work.
Does anyone solve this issue?
I haven't had a chance to update our web server to 2020a, and at this point am planning to wait for 2020b, so I haven't had any more chance to explore.
Confirming that with 2020b, neither the "maximized" nor "fullscreen" setting for "WindowState" of the app.UIFigure seems to have an effect on the web app.
Petr Semotam
Petr Semotam el 9 de Mzo. de 2022
Movida: Voss el 28 de Feb. de 2023
Have you already solve this issue or there is still no way how to start web app in maximized mode by default?
Hannes Greim
Hannes Greim el 1 de Abr. de 2022
Editada: Hannes Greim el 1 de Abr. de 2022
(+1) I would also like to have the option to launch the Matlab WebApp Server applications "maximized" in the browser window. This doesn't seem to work currently, as of version R2021b. I tested it inside the startupFcn, at the top:
function startupFcn(app)
if isdeployed
app.UIFigure.WindowState = "maximized";
end
% [ ... ] "snip"
end

Iniciar sesión para comentar.

 Respuesta aceptada

Suresh Balakrishnama
Suresh Balakrishnama el 28 de Feb. de 2023
Movida: Voss el 28 de Feb. de 2023
Yes, we have solved this. https://www.mathworks.com/help/webappserver/ref/webappsconfig.html, please see the webapps-config app_session_fullscreen configuration setting.

6 comentarios

Does this configuration setting exist for the development version of the web app server as well?
Suresh Balakrishnama
Suresh Balakrishnama el 1 de Mzo. de 2023
Editada: Walter Roberson el 22 de Feb. de 2024
Hello Hannes - unfortunately no, this setting is available only in the product version of MATLAB Web App Server ( https://www.mathworks.com/products/matlab-web-app-server.html )
J. Alex Lee
J. Alex Lee el 19 de Sept. de 2023
I haven't checked if this works for me - I don't have current version set up and don't have near term plans to do so. However, I will accept this answer assuming the best.
For me, running windowstate maximized does also not work in Matlab online (but of course it works fine in the regular Matlab environment). Any idea? Setting the window width and height to 100% does not do proper full screen.
See the solution provided by Solam below if you are running the development version of the web app server. This solution worked perfectly for me. Good luck!
JClarcq
JClarcq el 17 de Mzo. de 2025
Maybe I have misunderstood the solution from Suresh.
Could we have the option to set the windows to maximize at the webapp level itself and not at the wabapp server? We do not want necessarly that all webapps open fullscreen.
Thank you.

Iniciar sesión para comentar.

Más respuestas (1)

Solam
Solam el 19 de Sept. de 2023
Editada: Solam el 19 de Sept. de 2023
For the development version of the web app server there is a solution to do this.
1 - Open this file : C:\ProgramData\MathWorks\webapps\R2023a\config\webapps.config
2 - Set this line like this :
3 - Restart the Web App Server

Categorías

Más información sobre MATLAB Web App Server en Centro de ayuda y File Exchange.

Preguntada:

el 10 de Oct. de 2019

Comentada:

el 17 de Mzo. de 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by