An app has a startup function which maximizes the window from the start but even if the resize option is selected, the components of the app are not properly scaled up and down.
Reproduction steps:
1. Create new app in App Designer
2. Add a scalable component like an axes
3. Add a startupFcn callback function
4. In the callback, set the WinddowState of the uifigure to be 'maximized':
app.UIFigure.WindowState = 'maximized';
5. Run the app and resize the window — the axes will not resize
6. Comment out/remove the window state line of code and retry — the axes will properly resize up and down
Best Answer