2020-03-17 MATLAB App Designer——關于gridlayout控件完成后的顯示問題
1、采用matlab2020a進行界面自適應操作時,采用gridlayout控件,部分控件顯示不全,甚至有些控件無法顯示
以下采用僅一次布局,布局命令
? ? ?app.SetGlobalPath.Layout = uigridlayout(app.SetGlobalPath.Figure,'RowSpacing',5,...
? ? ? ? ? ? ? ? ? ? ? ? 'ColumnSpacing',5,'Scrollable',"on",'ColumnWidth',{300,'1x'},...
? ? ? ? ? ? ? ? ? ? ? ? 'RowHeight',{50,'1x','1x','1x'}); % 總體布局
3個表格控件設置跨度為各面板InnerPosition寬度和高度

部分控件顯示不全
2、對顯示不正常的面板進一步采用gridlayout控件進行布局,則顯示完全
對panel控件也采用了gridlayout控件后的效果如下:

例子如下:
? ? ? ? ? ? ? ? ? ? % # 新增參數(shù)配置區(qū)域 % 閾值表
? ? ? ? ? ? ? ? ? ? LimintValueDataPlanel = uipanel(app.SetGlobalPath.Layout,...
? ? ? ? ? ? ? ? ? ? ? ? 'Title','初始值信息','TitlePosition','lefttop','Scrollable',"off");
? ? ? ? ? ? ? ? ? ? LimintValueDataPlanel.Layout.Row = 4;
? ? ? ? ? ? ? ? ? ? LimintValueDataPlanel.Layout.Column = 2;
? ? ? ? ? ? ? ? ? ? app.SetGlobalPath.Layout04 = uigridlayout(LimintValueDataPlanel,'RowSpacing',0,...
? ? ? ? ? ? ? ? ? ? ? ? 'ColumnSpacing',0,'Scrollable',"on",'ColumnWidth',{'1x'},'RowHeight',{'1x'});
? ? ? ? ? ? ? ? ? ? app.SetGlobalPath.LimintValueDataTable = uitable(app.SetGlobalPath.Layout04,...
? ? ? ? ? ? ? ? ? ? ? ? 'Units','pixels','RowStriping','on','ColumnSortable',true, ...
? ? ? ? ? ? ? ? ? ? ? ? 'ColumnEditable',true,'RowName','numbered');
? ? ? ? ? ? ? ? ? ? app.SetGlobalPath.LimintValueDataTable.Layout.Row = 1;
? ? ? ? ? ? ? ? ? ? app.SetGlobalPath.LimintValueDataTable.Layout.Column = 1;