Commit 5a46c4b8 authored by Akikonata's avatar Akikonata

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

parents 36353528 a5205435
...@@ -66,7 +66,6 @@ Minder.Receiver = kity.createClass( 'Receiver', { ...@@ -66,7 +66,6 @@ Minder.Receiver = kity.createClass( 'Receiver', {
}, },
setMinderNode: function ( node ) { setMinderNode: function ( node ) {
this.minderNode = node; this.minderNode = node;
node.addShape(this.textShape);
return this; return this;
}, },
keyboardEvents: function ( e ) { keyboardEvents: function ( e ) {
...@@ -228,10 +227,10 @@ Minder.Receiver = kity.createClass( 'Receiver', { ...@@ -228,10 +227,10 @@ Minder.Receiver = kity.createClass( 'Receiver', {
return this; return this;
}, },
getBaseOffset: function (node) { getBaseOffset: function (node) {
return this.textShape.getRenderBox( node || this.minderNode.getRenderContainer() ); return this.textShape.getRenderBox( node || this.km.getRenderContainer() );
}, },
setBaseOffset: function () { setBaseOffset: function () {
this.offset = this.textShape.getRenderBox( this.minderNode.getRenderContainer() ); this.offset = this.textShape.getRenderBox( this.km.getRenderContainer() );
return this; return this;
}, },
setContainerStyle: function () { setContainerStyle: 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