gcf().viewport is out of work (regression from 5.4.0)
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
The gcf().viewport property is no longer active. When gcf().auto_resize="off" and the figure size is smaller than the plot size, scrollbars appear, but
a) setting gcf().viewport = [a,b]
no longer move them
b) dragging the bars no longer update gcf().viewport values.
The behavior was still OK with Scilab 5.3.0, and no longer OK with Scilab 5.4.0
ERROR LOG:
----------
None. Wrong behavior.
HOW TO REPRODUCE THE BUG:
-------------------------
f = scf();
f.auto_resize = "off";
// Shrink the figure by hand in order to make scrollbars appearing.
// Move the scrollbars to see the lower right corner of the figure. Then,
f.viewport // should no longer be [0,0]. But it is still the case
f.viewport = [0 0] // should move the scrollbars to see the upper left corner of the figure, but it is no longer the case.
OTHER INFORMATION:
------------------
// Beware about the bug http://bugzilla.scilab.org/show_bug.cgi?id=14650 that makes harder to build a nice "automatic" test.