App designer uitable in the panel always shift position after restart

17 visualizaciones (últimos 30 días)
Hank
Hank el 24 de Jul. de 2023
Respondida: Erik el 19 de Sept. de 2023
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?

Respuestas (2)

Harshal Ritwik
Harshal Ritwik el 27 de Jul. de 2023
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 el 19 de Sept. de 2023
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.

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by