Module: check_mk
Branch: master
Commit: e7f0f5945f0a1e917bdda1da7d233d94435dfe46
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e7f0f5945f0a1e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Mar 23 17:15:06 2013 +0100
Fix auto resize of textarea on Chrome
---
web/htdocs/js/checkmk.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index 202501a..c46bf09 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -1591,7 +1591,7 @@ function valuespec_cascading_change(oSelect, varprefix, count) {
}
function valuespec_textarea_resize(oArea) {
- oArea.style.height = oArea.scrollHeight + "px";
+ oArea.style.height = (oArea.scrollHeight - (/Chrome/i.test(navigator.userAgent) ? 6 :
0)) + "px";
}
function valuespec_listof_add(varprefix, magic) {