mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 08:39:58 +09:00
#19318777 IE 커서 버그 수정 (Workaround)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7973 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e44de793a7
commit
e86e655cc1
1 changed files with 15 additions and 4 deletions
|
|
@ -96,6 +96,21 @@ Xeed = xe.createApp('Xeed', {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// focusing workaround
|
||||||
|
if ($.browser.opera || $.browser.msie) {
|
||||||
|
this.$richedit.parent()
|
||||||
|
.mouseover(function(){
|
||||||
|
var $box = $(this), $rich = self.$richedit;
|
||||||
|
|
||||||
|
if ($rich.outerHeight() < $box.height()) {
|
||||||
|
$rich
|
||||||
|
.height($box.height()-parseInt($rich.css('padding-top'))-parseInt($rich.css('padding-bottom')))
|
||||||
|
.mouseout(function(){ $rich.css('height', '') })
|
||||||
|
.focus(function(){ $rich.css('height', '') });
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// button hover event
|
// button hover event
|
||||||
this.$toolbar
|
this.$toolbar
|
||||||
.delegate('li.ti>button', 'mouseover', function(){ $(this[_pn_]).addClass('hover') })
|
.delegate('li.ti>button', 'mouseover', function(){ $(this[_pn_]).addClass('hover') })
|
||||||
|
|
@ -406,10 +421,6 @@ Xeed = xe.createApp('Xeed', {
|
||||||
if (!$.browser.msie && !this.$richedit.html()) this.cast('SET_CONTENT', ['<br />']);
|
if (!$.browser.msie && !this.$richedit.html()) this.cast('SET_CONTENT', ['<br />']);
|
||||||
|
|
||||||
this.$richedit.focus();
|
this.$richedit.focus();
|
||||||
|
|
||||||
sel = this.getEmptySelection();
|
|
||||||
sel.selectNodeContents(this.$richedit[0]);
|
|
||||||
sel.select();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue