Run Web App maximized (fill browser window) by default?
古いコメントを表示
There is a feature for "maximizing" the web app window inside the browser:

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 件のコメント
Marc Youcef
2020 年 4 月 6 日
Same thing here would love to have an answer
Mohammad Sami
2020 年 4 月 6 日
set(app.UIFigure,'WindowState','maximized');
There is also a fullscreen option
J. Alex Lee
2020 年 4 月 6 日
Mohammad Sami
2020 年 4 月 7 日
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.
J. Alex Lee
2020 年 4 月 8 日
Simone Pavan
2020 年 7 月 30 日
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?
J. Alex Lee
2020 年 7 月 30 日
J. Alex Lee
2021 年 8 月 11 日
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
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
採用された回答
その他の回答 (1 件)
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
2023 年 9 月 19 日
Awesome! This works perfectly. Thank you for sharing!
カテゴリ
ヘルプ センター および File Exchange で MATLAB Web App Server についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!