Commit 6e392b2f authored by techird's avatar techird

Merge branch 'dev' of github.com:fex-team/kityminder into dev

parents 945cf503 dffc771b
......@@ -362,7 +362,7 @@ Minder.Receiver = kity.createClass('Receiver', {
setContainerStyle: function() {
var textShapeBox = this.getBaseOffset('screen');
this.container.style.cssText = ';left:' + (browser.ipad ? '-' : '') +
textShapeBox.x + 'px;top:' + (textShapeBox.y ) +
textShapeBox.x + 'px;top:' + (textShapeBox.y) +
'px;width:' + textShapeBox.width + 'px;height:' + textShapeBox.height + 'px;';
return this;
......@@ -504,7 +504,14 @@ Minder.Receiver = kity.createClass('Receiver', {
var node = this.container.firstChild;
range.setStart(node, this.selection.startOffset);
range.setEnd(node, this.selection.endOffset);
if(browser.gecko){
this.container.focus();
setTimeout(function(){
range.select();
});
}else{
range.select();
}
return this;
},
updateContainerRangeBySel:function(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment