Module: check_mk
Branch: master
Commit: 6f4f8a82dd2e33376feae640e3b2496d5534b4a8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6f4f8a82dd2e33…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jul 3 17:04:50 2018 +0200
6322 FIX Inventory painters: Allow dynamic table column width scaling
In previous versions inventory painter columns tried to consume as much width
of the view tables as possible. This has been changed to allow automatic width
scaling of all non-fixed-width columns in the table.
Change-Id: Ibc27805dc1743396f5eb614ec7e2a34364d80f9c
---
.werks/6322 | 13 +++++++++++++
web/plugins/views/inventory.py | 2 +-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/6322 b/.werks/6322
new file mode 100644
index 0000000..29c4e08
--- /dev/null
+++ b/.werks/6322
@@ -0,0 +1,13 @@
+Title: Inventory painters: Allow dynamic table column width scaling
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1530630169
+
+In previous versions inventory painter columns tried to consume as much width
+of the view tables as possible. This has been changed to allow automatic width
+scaling of all non-fixed-width columns in the table.
diff --git a/web/plugins/views/inventory.py b/web/plugins/views/inventory.py
index 0f7d9ed..2443205 100644
--- a/web/plugins/views/inventory.py
+++ b/web/plugins/views/inventory.py
@@ -81,7 +81,7 @@ def _paint_host_inventory_tree_value(struct_tree, parsed_path,
tree_renderer, in
tree_renderer.show_attribute(child.get_child_data().get(attributes_key),
_inv_display_hint(invpath))
code = html.drain()
- return "invtree", code
+ return "", code
inv_filter_info = {