Keep the images layout fixed even if some fail to load

This commit is contained in:
Alexander A. Klimov 2018-03-20 16:47:01 +01:00
parent 6caea7a236
commit cec7a1df43
2 changed files with 3 additions and 1 deletions

View file

@ -254,7 +254,8 @@ abstract class Graphs extends AbstractWidget
'<img id="graphiteImg-'
. md5((string) $imageUrl->without('cachebuster'))
. "\" src=\"$imageUrl\" class=\"detach graphiteImg\" alt=\"\""
. " width=\"$this->width\" height=\"$this->height\">",
. " width=\"$this->width\" height=\"$this->height\""
. " style=\"min-width: {$this->width}px; min-height: {$this->height}px;\">",
$metricVariables,
$bestPos
];

View file

@ -15,6 +15,7 @@ div.images.monitored-object-detail-view {
img.graphiteImg {
width: 100%;
display: block;
}
}