Skip to content

Commit 02b2f1b

Browse files
committed
fix: compact single file panel rows
1 parent 7f8df1c commit 02b2f1b

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

+labkit/+ui/+app/private/specRowHeight.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
function value = filePanelHeight(spec)
5757
if strcmp(char(string(optionValue(spec.props, 'mode', 'multi'))), 'single')
58-
value = 94;
58+
value = 72;
5959
return;
6060
end
6161
rows = 6;

+labkit/+ui/version.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
% compatible contract ranges implemented by this code, contract status,
1313
% and a short maintainer note.
1414

15-
info = labkit.contract.versionInfo("ui", "3.2.4", ">=3.0 <4", ...
16-
"stable", "UI 3.x app/spec/view/tool/diag contract with stable single-file panels, toolPanel hosts, filePanel title context, debug trace, close guard, crash reports, and default text fitting.");
15+
info = labkit.contract.versionInfo("ui", "3.2.5", ">=3.0 <4", ...
16+
"stable", "UI 3.x app/spec/view/tool/diag contract with compact single-file panels, toolPanel hosts, filePanel title context, debug trace, close guard, crash reports, and default text fitting.");
1717
end

tests/cases/gui/labkit/ui/GuiLayoutUiDeclarativeAppTest.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,9 @@ function assertSingleFilePanelContract(control)
439439
'single-mode filePanel controls should not stretch vertically with the section.');
440440
assert(control.displayField.Position(3) > control.chooseButton.Position(3), ...
441441
'single-mode filePanel should reserve most horizontal space for the filename.');
442+
rowHeight = control.panel.Parent.RowHeight{control.panel.Layout.Row};
443+
assert(isnumeric(rowHeight) && rowHeight <= 72, ...
444+
'single-mode filePanel should use a compact section row height.');
442445
end
443446

444447
function settleLayout()

0 commit comments

Comments
 (0)