修改ke:issue描述只有一行,点击编辑后,描述框被拉高了,有很多空白

This commit is contained in:
yuanke 2016-05-24 16:22:46 +08:00
parent e7d20c2b98
commit 9e8411aac9
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ KindEditor.plugin('autoheight', function(K) {
var body = edit.doc.body;
edit.iframe.height(minHeight);
self.resize(null, Math.max(
((K.IE ? body.scrollHeight : body.offsetHeight) > 500 ? 500 : (K.IE ? body.scrollHeight : body.offsetHeight)) //限制初始化太高的情况
((K.IE ? body.scrollHeight : body.offsetHeight) > 250 ? 250 : (K.IE ? body.scrollHeight : body.offsetHeight)) //限制初始化太高的情况
+ 33, minHeight));
}