[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #59756] octave doesn't execute resizefcn callb
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #59756] octave doesn't execute resizefcn callback when figure made visible. |
Date: |
Tue, 12 Jan 2021 12:18:31 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36 |
Follow-up Comment #5, bug #59756 (project octave):
And just to verify the final possibility mentioned in the Matlab
documentation, could you try this code?
cb2 = @(h,e) disp('f2 ResizeFcn callback called');
f2 = double(figure('Visible', 'on'))
set (f2, 'resizefcn', cb2)
set (f2, 'visible', 'off')
set (f2, 'position', [0, 0, 200, 200])
set (f2, 'visible', 'on')
In Octave, the ResizeFcn is called after the call to set (...'position'...)
even though the figure is still invisible at that time. I expect that Matlab
waits and calls the ResizeFcn only when the figure is made visible again.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59756>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/