Skip to content

Commit 86f4bc4

Browse files
authored
[NET-271] Brain Atlas button too big (#109)
* change brain atlas button to use a tooltip instead of resize * remove unused variable for initial idea
1 parent 7586a7d commit 86f4bc4

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

+nla/+inputField/NetworkAtlas.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,9 @@ function update(obj)
198198
obj.checkbox_surface_parcels.Value = false;
199199
end
200200
end
201-
obj.button.Position(3) = widthOfString(obj.button.Text, LABEL_H) + widthOfString(' ', LABEL_H + LABEL_GAP);
201+
% Instead of changing the width of the button and making the line unusable, use a tooltip
202+
% obj.button.Position(3) = widthOfString(obj.button.Text, LABEL_H) + widthOfString(' ', LABEL_H + LABEL_GAP);
203+
obj.button.Tooltip = obj.button.Text;
202204

203205
obj.inflation_label.Position(1) = obj.button.Position(1) + obj.button.Position(3) + LABEL_GAP;
204206
obj.inflation_dropdown.Position(1) = obj.button.Position(1) + obj.button.Position(3) + LABEL_GAP +...

+nla/+inputField/NetworkAtlasFuncConn.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,9 @@ function update(obj)
332332
obj.checkbox_surface_parcels.Value = false;
333333
end
334334
end
335-
obj.button.Position(3) = widthOfString(obj.button.Text, LABEL_H) + widthOfString(' ', LABEL_H + LABEL_GAP);
336-
335+
% Instead of changing the width of the button and making the line unusable, use a tooltip
336+
% obj.button.Position(3) = widthOfString(obj.button.Text, LABEL_H) + widthOfString(' ', LABEL_H + LABEL_GAP);
337+
obj.button.Tooltip = obj.button.Text;
337338

338339
obj.inflation_label.Position(1) = obj.button.Position(1) + obj.button.Position(3) + LABEL_GAP;
339340
obj.inflation_dropdown.Position(1) = obj.button.Position(1) + obj.button.Position(3) + LABEL_GAP +...

0 commit comments

Comments
 (0)