Running app reformats the design

6 ビュー (過去 30 日間)
Zachary Bons
Zachary Bons 2022 年 12 月 22 日
回答済み: Prateek 2022 年 12 月 26 日
When I format the design in the App Designer, it looks like this:
But when I click 'run' to view the actual app, it reformats to this:
The big problem is that the output fields and text are showing up on top of the plot axes. In previous versions of this app, I haven't had these problems. Does anyone know what might be going on?
  2 件のコメント
Cameron
Cameron 2022 年 12 月 22 日
Which version of MATLAB are you using?
Zachary Bons
Zachary Bons 2022 年 12 月 22 日
2022b

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

採用された回答

Prateek
Prateek 2022 年 12 月 26 日
Hello Zachary,
As I understand, the components change position once the app is run, and that this issue was not present in an earlier version of this app.
I suggest you use uigridlayout to place and resize the components, instead of relying on auto resize:
1) In AppDesigner, open the app, and move the cursor to the right side of the design. Then, right click in an empty space (not on a component), and select "Apply Grid Layout". This will insert a uigridlayout.
2) Adjust the grid configuration as needed.
3) Relaunch the app.
Hope this helps.
Regards,
Prateek

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by