window size in matlab's app designer
168 views (last 30 days)
edit: attached the app
when designing an app in the app designer (2020b), the size of the window seems to vary when I run it in differen PCs. I mean the size of the window after running the app.
In some computers part of the app itself is cut and cannot be accessed by the user.
is there a way to fix this?
Adam Danz on 16 Mar 2021
Edited: Adam Danz on 17 Mar 2021
From the component browser in AppDesigner, select the figure handle and check the Window Appearance & Position properties in the properties inspector.
If the WindowState is set to maximized or fullscreen then the AutoResizeChildren should be checked so that different the app components will maintain their relative positions with monitor sizes.
You also need to make these changes in the startup function. This will allow the app to fully render before resizing the figure.
%app.UIFigure.WindowState='maximized'; % <--------- remove
app.System_Inert.Items = app.Material_list;
app.System_Reactive.Items = app.Material_list;
app.System_Reactive.Value = 'Water';
drawnow(); pause(.05) % <--------- add
app.UIFigure.WindowState='maximized'; % <--------- add