[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: |
Sun, 27 Dec 2020 14:16:07 -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 |
Update of bug #59756 (project octave):
Status: None => Need Info
_______________________________________________________
Follow-up Comment #2:
Is the callback function invoked whenever you transition from not visible to
visible? Or only in this case where the figure started off not visible and
then was made visible?
This test code should do it:
f = figure();
cb = @(h,e) disp('ResizeFcn callback called');
set(f, 'ResizeFcn', cb);
set(f, 'Visible', 'off');
set(f, 'Visible', 'on');
Looking at the documentation, it appears the function is called when:
This container becomes visible for the first time.
This container is visible while its size changes.
This container becomes visible for the first time after its size changes. This
situation occurs when the size changes while the container is invisible, and
then it becomes visible later.
I bet that Octave is only considering the most obvious second case where the
size is changed when the figure is visible.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59756>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/