높이 설정값이 반영되지 않던 버그 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7929 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2010-11-29 02:32:08 +00:00
parent ce76db4c5a
commit 4b5faff5d5
2 changed files with 10 additions and 1 deletions

View file

@ -20,6 +20,9 @@ function editorStart_xe(editor_seq, primary_key, content_key, editor_height, col
// Use auto save feature?
opt.use_autosave = !!$form[0].elements['_saved_doc_title'];
// min height
if (editor_height) opt.height = parseInt(editor_height) || 200;
// create an editor
xe.Editors[editor_seq] = xeed = new xe.Xeed($textarea, opt);

View file

@ -43,9 +43,13 @@ Xeed = xe.createApp('Xeed', {
// Options
opts = $.extend({
height : 200,
minHeight : 400
}, options);
this._options = opts;
// min height
if (opts.minHeight > opts.height) opts.minHeight = opts.height;
//
if ($obj.is('textarea')) {
@ -1729,7 +1733,7 @@ EditMode = xe.createPlugin('EditMode', {
*/
Resize = xe.createPlugin('Resize', {
_fn : null,
prev_height : 400,
prev_height : 0,
$resize_bar : null,
$auto_check : null,
$container : null,
@ -1789,6 +1793,8 @@ Resize = xe.createPlugin('Resize', {
},
activate : function() {
var $root = this.oApp.$root, chk;
if (!this.prev_height) this.prev_height = this.oApp.getOption('height');
this.$container = this.oApp.$richedit.parent();
this.$resize_bar = $root.find('button.resize').mousedown(this._fn.down);