diff --git a/library/Graphite/Web/Widget/Graphs.php b/library/Graphite/Web/Widget/Graphs.php index 52f19ca3..9060a520 100644 --- a/library/Graphite/Web/Widget/Graphs.php +++ b/library/Graphite/Web/Widget/Graphs.php @@ -261,7 +261,8 @@ protected function getGraphsList() '\"\""width\" height=\"$this->height\">", + . " width=\"$this->width\" height=\"$this->height\"" + . " style=\"min-width: {$this->width}px; min-height: {$this->height}px;\">", $metricVariables, $bestPos ]; diff --git a/public/css/module.less b/public/css/module.less index f42f6f3f..7a7e60e9 100644 --- a/public/css/module.less +++ b/public/css/module.less @@ -15,6 +15,7 @@ div.images.monitored-object-detail-view { img.graphiteImg { width: 100%; + display: block; } }