Skip to content

Commit 5662de0

Browse files
committed
bugfix to ContextualView for releases prior to R2022b
1 parent e88f4df commit 5662de0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

widgets/+wt/ContextualView.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,11 @@ function setup(obj)
281281

282282
% Create panel
283283
obj.Panel = uipanel(obj.Grid);
284-
obj.Panel.BorderWidth = 2;
284+
285+
% Adjust the initial border width (R2022b and later)
286+
if ~isMATLABReleaseOlderThan("R2022b")
287+
obj.Panel.BorderWidth = 2;
288+
end
285289

286290
% Grid Layout to place the contents
287291
obj.ContentGrid = uigridlayout(obj.Panel,[1 1]);

0 commit comments

Comments
 (0)