Strange UI behaviour in App Designer
1 回表示 (過去 30 日間)
古いコメントを表示
I am designing an app in App Designer but sometimes when I run the app the UI becomes broken (see first image) and I have to run the app again for the UI to render as intended (see second image). I have used the 2-Panel App with Auto-Reflow template to start designing this app. I'm not providing any code snippets as I don't know where the problem might originate from and because the problem appears even if I don't make any changes that affect the UI of the app.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/979130/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/979135/image.png)
6 件のコメント
Kevin Holly
2022 年 4 月 28 日
編集済み: Kevin Holly
2022 年 4 月 28 日
@John F I had an issue with an app while using Auto-Reflow in the past when I used the unsupported normalized units. Switching back to pixel units resolved my issue. So, I'm not 100% sure that its the issue, just a guess based on my past experience. As for an example, I would add the following line after adjusting the position of your axes (assuming you did this programmatically after converting to normalize units):
app.UIAxes.Units = 'pixels'
Giving it a second look, I noticed you are using R2020b. Have you trying running the app in the lastest release?
回答 (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!