Skip to content

Commit

Permalink
ne_dialg: fix side effect of movegui()
Browse files Browse the repository at this point in the history
  • Loading branch information
nthallen committed Feb 8, 2022
1 parent 66857f6 commit 58bf9c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ne/ne_dialg.m
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,12 @@
f.xmax = f.xmax + xpad;
% fp = get(gcf,'Position');
% f.figpos(2) = f.figpos(2) - (f.ymax-f.ymin-f.figpos(4));
movegui(f.fig);
f.figpos = f.fig.Position;
f.figpos(2) = f.figpos(2) + f.ymin;
f.figpos(3) = f.xmax;
f.figpos(4) = f.figpos(4) - f.ymin;
set(f.fig,'Position',f.figpos,'Resize','Off');
movegui(f.fig);
% Adjust x,y of each uicontrol
if isempty(f.panel)
c = findobj(f.fig,'type','uicontrol')';
Expand Down

0 comments on commit 58bf9c4

Please sign in to comment.