[checkmk-commits] Check_MK Git: check_mk: Fix layout for rule editor: no wrap before clock icon in comment

Mathias Kettner mk at mathias-kettner.de
Sat Aug 23 19:01:43 CEST 2014


Module: check_mk
Branch: master
Commit: c2ae5c0d74e99487e4752cdda6ffd3ab7aaa6c0c
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c2ae5c0d74e99487e4752cdda6ffd3ab7aaa6c0c

Author: Mathias Kettner <mk at mathias-kettner.de>
Date:   Sat Aug 23 19:01:37 2014 +0200

Fix layout for rule editor: no wrap before clock icon in comment

---

 web/htdocs/valuespec.py |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 939856f..27f8f8f 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -349,8 +349,12 @@ class TextAscii(ValueSpec):
             html.write(self._label)
             html.write(" ")
 
+        if self._prefix_buttons:
+            html.write('<div style="white-space: nowrap;">')
         html.text_input(varprefix, value, size = self._size, read_only = self._read_only, cssclass = self._cssclass)
         self.render_buttons()
+        if self._prefix_buttons:
+            html.write('</div>')
 
     def render_buttons(self):
         if self._prefix_buttons:



More information about the checkmk-commits mailing list