diff options
| author | Keith Packard <keithp@keithp.com> | 2013-02-11 10:24:34 -0800 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-02-11 10:29:35 -0800 |
| commit | 5a4cd7b9b318ddea5d1dcc71918819f11256ca94 (patch) | |
| tree | 78659d22a8348f7a6fbe7d8a6e90d974ff50679d | |
| parent | 169a6d51718d6b9fae757df9950d2e960d1c8c1d (diff) | |
altosuilib: rescale axis when enabling data series
This makes sure new series are visible when you enable them.
Signed-off-by: Keith Packard <keithp@keithp.com>
| -rw-r--r-- | altosuilib/AltosUIAxis.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/altosuilib/AltosUIAxis.java b/altosuilib/AltosUIAxis.java index 70084a00..867b0384 100644 --- a/altosuilib/AltosUIAxis.java +++ b/altosuilib/AltosUIAxis.java @@ -62,6 +62,8 @@ public class AltosUIAxis extends NumberAxis { System.out.printf("too few visible\n"); } setVisible(visible > 0); + if (enable) + autoAdjustRange(); } public void ref(boolean enable) { |
