Cannot Change UIFigure (App) Size Programmatically In 2022a
Mostrar comentarios más antiguos
I decided to upgrade my app designer GUI from 2019b to 2022a, but my app does not function correctly in 2022a.
I have a class for my apps that contains different layouts for each app state.
In one function I have following lines of code.
function fooLayout(app, imSize)
%Code calculating new Figure Height was removed.
app.UIFigure.Position(4) =newFigureHeight;
app.UIFigure.Position(3) = 1000+30+340;
end
In 2019b the figure changes size in 2022a the uifigure/ app does not change size. What am I doing wrong?
Other notes;
- Everything works correctly in 2019b.
- If I put a drawnow after the code the figure size still does not change.
- In 2022a the figure changes size if I put a break point before the code and step through each line.
- In 2022a the figure changes size if I put a break point before the code and press continue.
- In 2022a the figure changes size if put put a break point after the code. and press continue.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Install Products en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!