From 77a4b8647b6f500e2372251ff53296fa8e38fe1f Mon Sep 17 00:00:00 2001 From: David Schnur Date: Tue, 7 May 2013 21:14:12 -0400 Subject: [PATCH] Trigger an overlay refresh when drawing the plot. Resolves #1030. The performance impact should be low, and is the correct thing to do in just about all cases where a plot is being redrawn. --- jquery.flot.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jquery.flot.js b/jquery.flot.js index f2668ad..169d189 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -1758,6 +1758,11 @@ Licensed under the MIT license. } surface.render(); + + // A draw implies that either the axes or data have changed, so we + // should probably update the overlay highlights as well. + + triggerRedrawOverlay(); } function extractRange(ranges, coord) {