フィルターのクリア

App designer uitable in the panel always shift position after restart

5 ビュー (過去 30 日間)
Hank
Hank 2023 年 7 月 24 日
回答済み: Erik 2023 年 9 月 19 日
Hi
If I put uitable in the panel and restart app, uitable always shift it's position.
Is anyone knows why? Or any better suggestion that make uitable could fit in any container without error?

回答 (2 件)

Harshal Ritwik
Harshal Ritwik 2023 年 7 月 27 日
Hi,   
As per my understanding you want to know why ‘uitable’ is shifting its position when the app restarts. This issue could be due to layout and positioning settings of the panel or the table itself.
Here are the few suggestions to address this issue:
  • Ensure that the panel and ‘uitable’ are properly aligned and positioned within the app's layout. Use appropriate layout managers like ‘uiflowcontainer’ or ‘uigridlayout’ to manage the positioning of the components.
  • Check if the panel's or uitable's properties, such as ‘Position’ or ‘Layout’, are set correctly. Make sure they are not being dynamically modified during the execution of the app, which could cause the shifting behaviour.
Please refer to the following documentation for more information.
I hope it helps!  
Thanks.  

Erik
Erik 2023 年 9 月 19 日
Hi,
i have had the same problem when implementing tables, buttons, drop-down lists inside a uipanel.
In my case it helped creating a gridlayout inside the uipanel.
So add the uitable to your uipanel. Set the position and size like you would like to have it. Then right-click on the uipanel and select "Apply Grid Layout". This will automatically create a gridlayout inside your uipanel based on your elements (uitable).
I hope this will solve your problem.

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by