Module: check_mk
Branch: master
Commit: 74507567c2fcce1bf26b4d9a11ab6feb4ff7ba90
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=74507567c2fcce…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Jul 28 13:15:08 2014 +0200
fixed textarea auto resize (off by 6 pixel)
---
web/htdocs/js/checkmk.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index 29c97da..d211411 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -1663,8 +1663,7 @@ function valuespec_cascading_change(oSelect, varprefix, count) {
}
function valuespec_textarea_resize(oArea) {
- oArea.style.height = 'auto';
- oArea.style.height = oArea.scrollHeight + "px";
+ oArea.style.height = (oArea.scrollHeight - 6) + "px" ;
}