diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index ea0b128ef0..0f6a96fda1 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2011-11-03 Sergio Martin + + * include/graphs/functions_pchart.php: Fixed graphs to adapt bottom + margin with the font size and show the graphs properly when are + so little + 2011-11-02 Miguel de Dios * include/functions.php: added function "check_refererer" for check diff --git a/pandora_console/include/graphs/functions_pchart.php b/pandora_console/include/graphs/functions_pchart.php index b21c1be136..4b38a24e12 100755 --- a/pandora_console/include/graphs/functions_pchart.php +++ b/pandora_console/include/graphs/functions_pchart.php @@ -714,7 +714,7 @@ function pch_vertical_graph ($graph_type, $index, $data, $width, $height, $max_chars = $len; } } - $margin_bottom = 10 * $max_chars; + $margin_bottom = $font_size * $max_chars; $water_mark_height = 0; $water_mark_width = 0; @@ -742,7 +742,7 @@ function pch_vertical_graph ($graph_type, $index, $data, $width, $height, "GridG"=>200, "GridB"=>200, "DrawSubTicks"=>TRUE, - "CycleBackground"=>TRUE, "Mode"=>SCALE_MODE_START0, "LabelRotation" => 60, "XMargin" => 0); + "CycleBackground"=>TRUE, "Mode"=>SCALE_MODE_START0, "LabelRotation" => 60, "XMargin" => 0, "MinDivHeight" => 20); $myPicture->drawScale($scaleSettings); /* Turn on shadow computing */