Skip to content

Commit 759851a

Browse files
committed
Merge branch 'bugfix/layout-collapse'
2 parents 9b4df63 + cec7a1d commit 759851a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

library/Graphite/Web/Widget/Graphs.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ protected function getGraphsList()
261261
'<img id="graphiteImg-'
262262
. md5((string) $imageUrl->without('cachebuster'))
263263
. "\" src=\"$imageUrl\" class=\"detach graphiteImg\" alt=\"\""
264-
. " width=\"$this->width\" height=\"$this->height\">",
264+
. " width=\"$this->width\" height=\"$this->height\""
265+
. " style=\"min-width: {$this->width}px; min-height: {$this->height}px;\">",
265266
$metricVariables,
266267
$bestPos
267268
];

public/css/module.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ div.images.monitored-object-detail-view {
1515

1616
img.graphiteImg {
1717
width: 100%;
18+
display: block;
1819
}
1920
}
2021

0 commit comments

Comments
 (0)