From 9ba932077e47b13572ce8828248ecdacc38fae80 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Thu, 27 Feb 2014 22:28:05 +0800 Subject: [PATCH 1/4] Fix jqplot display Add clearfloat before jqplot element. Fix bug: legend overflow. Signed-off-by: Edward Cheng --- js/functions.js | 3 ++- libraries/sql.lib.php | 1 + themes/original/css/common.css.php | 2 +- themes/pmahomme/css/common.css.php | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/js/functions.js b/js/functions.js index d57cdb7f3f..c8c0444767 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1802,7 +1802,8 @@ function PMA_createProfilingChartJqplot(target, data) }, legend: { show: true, - location: 'e' + location: 'e', + rendererOptions: {numberColumns: 2} }, // from http://tango.freedesktop.org/Tango_Icon_Theme_Guidelines#Color_Palette seriesColors: [ diff --git a/libraries/sql.lib.php b/libraries/sql.lib.php index ab1a4fc55d..840aa0687a 100644 --- a/libraries/sql.lib.php +++ b/libraries/sql.lib.php @@ -506,6 +506,7 @@ function PMA_getHtmlForProfilingChart($url_query, $db, $profiling_results) EOT; $profiling_table .= ""; + $profiling_table .= "
"; //require_once 'libraries/chart.lib.php'; $profiling_table .= '