필터 지우기
필터 지우기

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 CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by