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

15 vues (au cours des 30 derniers jours)
J. Alex Lee
J. Alex Lee le 10 Oct 2019
Commenté : JClarcq le 17 Mar 2025
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 commentaires
Petr Semotam
Petr Semotam le 9 Mar 2022
Déplacé(e) : Voss le 28 Fév 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 le 1 Avr 2022
Modifié(e) : Hannes Greim le 1 Avr 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

Connectez-vous pour commenter.

Réponse acceptée

Suresh Balakrishnama
Suresh Balakrishnama le 28 Fév 2023
Déplacé(e) : Voss le 28 Fév 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 commentaires
Hannes Greim
Hannes Greim le 14 Avr 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!
JClarcq
JClarcq le 17 Mar 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.

Connectez-vous pour commenter.

Plus de réponses (1)

Solam
Solam le 19 Sep 2023
Modifié(e) : Solam le 19 Sep 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
  1 commentaire
Hannes Greim
Hannes Greim le 19 Sep 2023
Awesome! This works perfectly. Thank you for sharing!

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB Web App Server dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by