Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
d7686c1d
Commit
d7686c1d
authored
Feb 19, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
base offset update
parent
bf0f6134
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
12 deletions
+2
-12
kity
kity
+1
-1
editor.receiver.js
src/module/editor.receiver.js
+1
-11
No files found.
kity
@
7c049801
Subproject commit
04a63502b8d6c6605a3bec9317459c089f2416f6
Subproject commit
7c0498012df602619a38e6b88785a486cd92396d
src/module/editor.receiver.js
View file @
d7686c1d
...
...
@@ -138,17 +138,7 @@ Minder.Receiver = kity.createClass('Receiver',{
return
this
;
},
setBaseOffset
:
function
(){
var
nodeOffset
=
this
.
minderNode
.
getRenderContainer
().
getRenderBox
();
var
textOffset
=
this
.
textShape
.
getRenderBox
();
var
transformed
=
this
.
textShape
.
container
.
getTransform
().
transformBox
(
textOffset
);
//var contRcOffset = this.minderNode.getContRc().getRenderBox();
this
.
offset
=
{
x
:
nodeOffset
.
x
+
transformed
.
x
,
y
:
nodeOffset
.
y
+
transformed
.
y
};
this
.
offset
=
this
.
textShape
.
getRenderBox
(
'top'
);
return
this
;
},
setContainerStyle
:
function
(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment