How to fix auto-reflow issues?

7 visualizaciones (últimos 30 días)
Rod Lopez
Rod Lopez el 7 de Mzo. de 2022
Comentada: Rod Lopez el 8 de Mzo. de 2022
I created a 2-panel app with auto reflow, and have since regretted the decision. My app includes the left panel with an Axes component, and the right panel with various buttons, sliders etc. When I maximize the app, the right panel opens up horrizontally to fill the new space, while the left panel does nothing but expand vertically, so now my plot window is very narrow and the right panel which includes my buttons and knobs is very large. I am unable to share the app itself, but can provide additional detail as requested.
Here is what I have tried so far:
  1. Tried with and without a grid layout on each panel.
  2. Used grid layout manager to size the grid for the current component layout.
Because I picked "...with auto reflow", it looks like I cannot delete the 2 original panels, so I can't just delete them and place my own grid down.
Any ideas? Do I need to migrate to an app without reflow? Is there a way to remove the auto-reflow setting without starting over?

Respuesta aceptada

Sean de Wolski
Sean de Wolski el 7 de Mzo. de 2022
In 21b you can remove autoreflow from the Canvas Tab>Convert. They named the feature to remove it after me because I was in the exact same boat you're in. Grid layouts are way better.
  2 comentarios
Rod Lopez
Rod Lopez el 8 de Mzo. de 2022
Thank you! I will go ahead and upgrade to 21b and give this a try!
Rod Lopez
Rod Lopez el 8 de Mzo. de 2022
Upgrading to 2021b worked and let me perform the conversion to an app without reflow. This may require a separate question thread, so please advise if it needs to be moved.
When converting back to an app without reflow, it removed all of my callbacks. After adding them all back in, I also noticed that my ExitFcn callback is nowhere to be found, and app designer seems to think that it does exist. This means that I cannot create one, and when I click on "Go to ExitFcn callback", it goes nowhere.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by