Clear Filters
Clear Filters

App designer uitable in the panel always shift position after restart

5 views (last 30 days)
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?

Answers (2)

Harshal Ritwik
Harshal Ritwik on 27 Jul 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 on 19 Sep 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.

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!