From 18b2392e480b3be993d7ef755cc2c10a40a1261f Mon Sep 17 00:00:00 2001 From: fros4943 Date: Mon, 4 May 2009 16:03:35 +0000 Subject: [PATCH] minor fix: avoid repaint flicker by directly setting scroll coordinate --- tools/cooja/java/se/sics/cooja/plugins/TimeLine.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/cooja/java/se/sics/cooja/plugins/TimeLine.java b/tools/cooja/java/se/sics/cooja/plugins/TimeLine.java index 944e155eb..2880dd66d 100644 --- a/tools/cooja/java/se/sics/cooja/plugins/TimeLine.java +++ b/tools/cooja/java/se/sics/cooja/plugins/TimeLine.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: TimeLine.java,v 1.1 2009/05/04 15:38:35 fros4943 Exp $ + * $Id: TimeLine.java,v 1.2 2009/05/04 16:03:35 fros4943 Exp $ */ package se.sics.cooja.plugins; @@ -92,6 +92,7 @@ public class TimeLine extends VisPlugin { if (!viewportTracking) { return; } + viewportInfinite.x = timeline.getWidth(); timelineScrollPane.getViewport().setViewPosition(viewportInfinite); } };