From a4ac13085c297be040f36f94dc3cdfcebf0c1d86 Mon Sep 17 00:00:00 2001 From: Anthony Ryan Date: Thu, 20 Dec 2012 18:14:25 -0500 Subject: [PATCH] Document the affected versions of opera, and replace $.browser.opera with a line to detect only affected versions --- jquery.flot.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jquery.flot.js b/jquery.flot.js index 7988853..3c96a6c 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -1749,8 +1749,10 @@ Licensed under the MIT license. y += line.height/2 + offset; offset += line.height; - if ($.browser.opera) { - // FIXME: UGLY BROWSER DETECTION + if (!!(window.opera && window.opera.version().split('.')[0] < 12)) { + // FIXME: LEGACY BROWSER FIX + // AFFECTS: Opera < 12.00 + // round the coordinates since Opera // otherwise switches to more ugly // rendering (probably non-hinted) and