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

19 visualizaciones (últimos 30 días)
J. Alex Lee
J. Alex Lee el 10 de Oct. de 2019
Comentada: Hannes Greim el 14 de Abr. de 2024
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
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.
  5 comentarios
William Thielicke
William Thielicke el 22 de Feb. de 2024
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.
Hannes Greim
Hannes Greim el 14 de Abr. de 2024
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!

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 Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by