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

15 ビュー (過去 30 日間)
J. Alex Lee
J. Alex Lee 2019 年 10 月 10 日
コメント済み: JClarcq 2025 年 3 月 17 日
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 件のコメント
Petr Semotam
Petr Semotam 2022 年 3 月 9 日
移動済み: Voss 2023 年 2 月 28 日
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 2022 年 4 月 1 日
編集済み: Hannes Greim 2022 年 4 月 1 日
(+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

サインインしてコメントする。

採用された回答

Suresh Balakrishnama
Suresh Balakrishnama 2023 年 2 月 28 日
移動済み: Voss 2023 年 2 月 28 日
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 件のコメント
Hannes Greim
Hannes Greim 2024 年 4 月 14 日
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 2025 年 3 月 17 日
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.

サインインしてコメントする。

その他の回答 (1 件)

Solam
Solam 2023 年 9 月 19 日
編集済み: Solam 2023 年 9 月 19 日
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 件のコメント
Hannes Greim
Hannes Greim 2023 年 9 月 19 日
Awesome! This works perfectly. Thank you for sharing!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB Web App Server についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by