Commit ef89fc48 authored by campaign's avatar campaign

by zhanyi

parent d53af815
...@@ -48,7 +48,7 @@ KityMinder.registerModule( "TextEditModule", function () { ...@@ -48,7 +48,7 @@ KityMinder.registerModule( "TextEditModule", function () {
} }
}, },
'mouseup':function(e){ 'mouseup':function(e){
if(!sel.collapsed){ if(!sel.collapsed && mouseDownStatus){
receiver.updateRange(range) receiver.updateRange(range)
} }
mouseDownStatus = false; mouseDownStatus = false;
...@@ -119,6 +119,20 @@ KityMinder.registerModule( "TextEditModule", function () { ...@@ -119,6 +119,20 @@ KityMinder.registerModule( "TextEditModule", function () {
.updateRange(range); .updateRange(range);
}
if(e.commandName == 'priority' || e.commandName == 'progress'){
receiver.setBaseOffset()
.getTextOffsetData();
if(sel.collapsed){
receiver.updateSelection();
}else{
receiver.updateSelectionShow(1)
}
} }
} }
} }
......
...@@ -143,6 +143,7 @@ Minder.Receiver = kity.createClass('Receiver',{ ...@@ -143,6 +143,7 @@ Minder.Receiver = kity.createClass('Receiver',{
// var textOffset = this.textShape.getRenderBox(); // var textOffset = this.textShape.getRenderBox();
var contRcOffset = this.minderNode.getContRc().getRenderBox(); var contRcOffset = this.minderNode.getContRc().getRenderBox();
this.offset = { this.offset = {
x : nodeOffset.x + contRcOffset.x, x : nodeOffset.x + contRcOffset.x,
y : nodeOffset.y + contRcOffset.y y : nodeOffset.y + contRcOffset.y
......
...@@ -87,8 +87,8 @@ KityMinder.registerModule( "IconModule", function () { ...@@ -87,8 +87,8 @@ KityMinder.registerModule( "IconModule", function () {
} )() ); } )() );
return { return {
"commands": { "commands": {
"setpriority": setPriorityCommand, "priority": setPriorityCommand,
"setprogress": setProgressCommand "progress": setProgressCommand
}, },
"events": { "events": {
"RenderNode": function ( e ) { "RenderNode": function ( e ) {
......
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