Module: check_mk
Branch: master
Commit: 842292b69e8bde8a66c392b4d70613d6b36b844a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=842292b69e8bde…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 11 16:41:58 2017 +0100
HTML graphs: Made spacing sizes relative to font size
Change-Id: Ib043b88ff023731186534bf5b57c26e570e44fdb
---
web/htdocs/metrics.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/metrics.py b/web/htdocs/metrics.py
index 195dca8..63ccf59 100644
--- a/web/htdocs/metrics.py
+++ b/web/htdocs/metrics.py
@@ -1579,8 +1579,8 @@ def host_service_graph_dashlet_cmk(graph_identification,
custom_graph_render_opt
int(float(html.var("height"))/html_size_per_ex))
height -= _graph_title_height_ex(graph_render_options)
- height -= (_graph_top_margin_px(graph_render_options) +
_graph_bottom_margin_px(graph_render_options)) / html_size_per_ex
- width -= (_graph_left_margin_px(graph_render_options) +
_graph_right_margin_px(graph_render_options)) / html_size_per_ex
+ height -= _graph_top_margin_ex(graph_render_options) +
_graph_bottom_margin_ex(graph_render_options)
+ width -= _graph_left_margin_ex(graph_render_options) +
_graph_right_margin_ex(graph_render_options)
graph_render_options["size"] = (width, height)