Adjust area graph position in vconsole dashboard / open - #566
This commit is contained in:
parent
efa8a2c779
commit
f3b5e3bb03
|
@ -3125,9 +3125,8 @@ function move_elements_resize(original_width, original_height, width, height) {
|
|||
}
|
||||
|
||||
function unselectAll() {
|
||||
$("#background").css('border', '1px lightgray solid');
|
||||
|
||||
$(".item").each(function(){
|
||||
$("#background").css('border', '1px lightgray solid');
|
||||
$(".item").each(function(){
|
||||
$(this).css('border', '');
|
||||
if($(this).attr('withborder') == 'true'){
|
||||
$(this).css('top', '+=1');
|
||||
|
@ -3136,7 +3135,7 @@ function unselectAll() {
|
|||
}
|
||||
|
||||
});
|
||||
|
||||
selectedItem = null;
|
||||
}
|
||||
|
||||
function click_button_toolbox(id) {
|
||||
|
|
|
@ -265,7 +265,9 @@ function flot_area_graph($chart_data, $width, $height, $color, $legend,
|
|||
}
|
||||
$return .= html_print_input_hidden('line_width_graph', $config['custom_graph_width'], true);
|
||||
$return .= "<div id='timestamp_$graph_id' class='timestamp_graph' style='font-size:".$font_size."pt;display:none; position:absolute; background:#fff; border: solid 1px #aaa; padding: 2px; z-index:1000;'></div>";
|
||||
$return .= "<div id='$graph_id' class='graph $adapt_key' style='width: ".$width."px; height: ".$height."px;'></div>";
|
||||
$return .= "<div id='$graph_id' class='";
|
||||
if($type=='area_simple'){$return .= "noresizevc ";}
|
||||
$return .= "graph $adapt_key' style='width: ".$width."px; height: ".$height."px;'></div>";
|
||||
if ($menu) {
|
||||
$height = 100;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue