Improve resizer
This commit is contained in:
parent
a88705463d
commit
4ffeb06ca0
@ -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',
|
||||
|
||||
@ -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)) {
|
||||
?>
|
||||
<div id='resizer' style="width:600px;height:400px">
|
||||
<div id="resizer">
|
||||
<center><a href="#" onclick="displayHelp();"><?php echo __('How to use'); ?></a></center>
|
||||
<div id="querydata" style="display:none">
|
||||
<?php
|
||||
echo json_encode($data);
|
||||
?>
|
||||
</div>
|
||||
<div id="querychart" style="float:right"></div>
|
||||
<div id="querychart"></div>
|
||||
<button class="button-reset"><?php echo __('Reset zoom'); ?></button>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
@ -598,6 +598,18 @@ td.disabled {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/**
|
||||
* zoom search
|
||||
*/
|
||||
div#resizer {
|
||||
width: 600px;
|
||||
height: 400px;
|
||||
}
|
||||
div#querychart {
|
||||
float: left;
|
||||
width: 600px;
|
||||
}
|
||||
|
||||
/**
|
||||
* login form
|
||||
*/
|
||||
|
||||
@ -779,6 +779,18 @@ td.disabled {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/**
|
||||
* zoom search
|
||||
*/
|
||||
div#resizer {
|
||||
width: 600px;
|
||||
height: 400px;
|
||||
}
|
||||
div#querychart {
|
||||
float: left;
|
||||
width: 600px;
|
||||
}
|
||||
|
||||
/**
|
||||
* login form
|
||||
*/
|
||||
@ -3485,7 +3497,7 @@ body .ui-widget {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size: 1em;
|
||||
/* height: 300px;
|
||||
width: 400px;*/
|
||||
width: 590px;*/
|
||||
}
|
||||
|
||||
/*rules applied to all axes*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user