Skip to content

Commit 2bd87fc

Browse files
committed
Small adaptation for getWebWindow getting the ancestor automatically
1 parent 697f6c9 commit 2bd87fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlapptools.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function fontWeight(uiElement, weight)
100100
% A method for obtaining the webwindow handle and the widgetID corresponding
101101
% to the provided uifigure control.
102102
% Get a handle to the webwindow
103-
win = mlapptools.getWebWindow(uiElement.Parent);
103+
win = mlapptools.getWebWindow(uiElement);
104104

105105
% Find which element of the DOM we want to edit
106106
widgetID = mlapptools.getWidgetID(win, mlapptools.getDataTag(uiElement));

0 commit comments

Comments
 (0)