diff --git a/js/tbl_zoom_plot_jqplot.js b/js/tbl_zoom_plot_jqplot.js index fc1645773b..1a26a979c6 100644 --- a/js/tbl_zoom_plot_jqplot.js +++ b/js/tbl_zoom_plot_jqplot.js @@ -504,10 +504,12 @@ $(document).ready(function() { currentChart.resetZoom(); }); - $('div#querychart').resizable({ - resize: function(event, ui) { - currentChart.replot( {resetAxes: true}) - } + $('div#resizer').resizable(); + $('div#resizer').bind('resizestop', function(event, ui) { + // make room so that the handle will still appear + $('div#querychart').height($('div#resizer').height() * 0.96); + $('div#querychart').width($('div#resizer').width() * 0.96); + currentChart.replot( {resetAxes: true}) }); $('div#querychart').bind('jqplotDataClick', diff --git a/tbl_zoom_select.php b/tbl_zoom_select.php index b57f631edf..d6960190bc 100644 --- a/tbl_zoom_select.php +++ b/tbl_zoom_select.php @@ -416,14 +416,14 @@ if (isset($zoom_submit) && $inputs[0] != 'pma_null' && $inputs[1] != 'pma_null' //JSON encode the data(query result) if (isset($zoom_submit) && ! empty($data)) { ?> -