mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 22:59:57 +09:00
높이 설정값이 반영되지 않던 버그 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7929 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ce76db4c5a
commit
4b5faff5d5
2 changed files with 10 additions and 1 deletions
|
|
@ -21,6 +21,9 @@ function editorStart_xe(editor_seq, primary_key, content_key, editor_height, col
|
||||||
// Use auto save feature?
|
// Use auto save feature?
|
||||||
opt.use_autosave = !!$form[0].elements['_saved_doc_title'];
|
opt.use_autosave = !!$form[0].elements['_saved_doc_title'];
|
||||||
|
|
||||||
|
// min height
|
||||||
|
if (editor_height) opt.height = parseInt(editor_height) || 200;
|
||||||
|
|
||||||
// create an editor
|
// create an editor
|
||||||
xe.Editors[editor_seq] = xeed = new xe.Xeed($textarea, opt);
|
xe.Editors[editor_seq] = xeed = new xe.Xeed($textarea, opt);
|
||||||
xe.registerApp(xeed);
|
xe.registerApp(xeed);
|
||||||
|
|
|
||||||
|
|
@ -43,10 +43,14 @@ Xeed = xe.createApp('Xeed', {
|
||||||
|
|
||||||
// Options
|
// Options
|
||||||
opts = $.extend({
|
opts = $.extend({
|
||||||
|
height : 200,
|
||||||
minHeight : 400
|
minHeight : 400
|
||||||
}, options);
|
}, options);
|
||||||
this._options = opts;
|
this._options = opts;
|
||||||
|
|
||||||
|
// min height
|
||||||
|
if (opts.minHeight > opts.height) opts.minHeight = opts.height;
|
||||||
|
|
||||||
//
|
//
|
||||||
if ($obj.is('textarea')) {
|
if ($obj.is('textarea')) {
|
||||||
$text = $obj;
|
$text = $obj;
|
||||||
|
|
@ -1729,7 +1733,7 @@ EditMode = xe.createPlugin('EditMode', {
|
||||||
*/
|
*/
|
||||||
Resize = xe.createPlugin('Resize', {
|
Resize = xe.createPlugin('Resize', {
|
||||||
_fn : null,
|
_fn : null,
|
||||||
prev_height : 400,
|
prev_height : 0,
|
||||||
$resize_bar : null,
|
$resize_bar : null,
|
||||||
$auto_check : null,
|
$auto_check : null,
|
||||||
$container : null,
|
$container : null,
|
||||||
|
|
@ -1790,6 +1794,8 @@ Resize = xe.createPlugin('Resize', {
|
||||||
activate : function() {
|
activate : function() {
|
||||||
var $root = this.oApp.$root, chk;
|
var $root = this.oApp.$root, chk;
|
||||||
|
|
||||||
|
if (!this.prev_height) this.prev_height = this.oApp.getOption('height');
|
||||||
|
|
||||||
this.$container = this.oApp.$richedit.parent();
|
this.$container = this.oApp.$richedit.parent();
|
||||||
this.$resize_bar = $root.find('button.resize').mousedown(this._fn.down);
|
this.$resize_bar = $root.find('button.resize').mousedown(this._fn.down);
|
||||||
this.$auto_check = $root.find('div.autoResize > :checkbox').click(this._fn.check);
|
this.$auto_check = $root.find('div.autoResize > :checkbox').click(this._fn.check);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue