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
84e22037
Commit
84e22037
authored
May 17, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed connect position
parent
cfc65d13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
markers.js
dialogs/markers/markers.js
+1
-1
layout.default.js
src/module/layout.default.js
+6
-2
No files found.
dialogs/markers/markers.js
View file @
84e22037
...
...
@@ -24,7 +24,7 @@
"<li value='7' type='priority'><span class='icon p7'></span><span><%= priority %>7</span></li>"
+
"<li value='8' type='priority'><span class='icon p8'></span><span><%= priority %>8</span></li>"
+
"<li value='9' type='priority'><span class='icon p9'></span><span><%= priority %>9</span></li>"
+
"<li value='10' type='priority'><span class='icon p0'></span><span><%= priority %>
0
</span></li>"
+
"<li value='10' type='priority'><span class='icon p0'></span><span><%= priority %>
-
</span></li>"
+
"</ul>"
+
"<ul class='icon-list progress'>"
+
"<li value='1' type='progress'><span class='icon p1'></span><span><%= progress.notdone %></span></li>"
+
...
...
src/module/layout.default.js
View file @
84e22037
...
...
@@ -396,12 +396,16 @@ KityMinder.registerModule("LayoutDefault", function () {
minder
.
getRenderContainer
().
addShape
(
connect
);
}
connect
=
Layout
.
connect
;
var
parentShape
=
node
.
getParent
().
getRenderContainer
();
var
parent
=
node
.
getParent
();
var
parentShape
=
parent
.
getRenderContainer
();
var
parentBox
=
parentShape
.
getRenderBox
();
var
parentLayout
=
node
.
getParent
()
.
getLayout
();
var
parentLayout
=
parent
.
getLayout
();
var
parentStyle
=
nodeStyles
[
node
.
getParent
().
getType
()];
var
Shape
=
node
.
getRenderContainer
();
var
sX
,
sY
=
parentBox
.
bottom
-
5
;
if
(
parent
.
getType
()
===
'main'
)
{
sY
=
(
parentBox
.
top
+
parentBox
.
bottom
)
/
2
}
var
nodeX
,
nodeY
=
Shape
.
getRenderBox
().
closurePoints
[
1
].
y
;
if
(
Layout
.
appendside
===
"left"
)
{
sX
=
parentBox
.
closurePoints
[
1
].
x
-
parentStyle
.
margin
[
1
];
...
...
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