Running app reformats the design
조회 수: 1 (최근 30일)
이전 댓글 표시
When I format the design in the App Designer, it looks like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1240632/image.png)
But when I click 'run' to view the actual app, it reformats to this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1240637/image.png)
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
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!