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
16ef799a
Commit
16ef799a
authored
Feb 20, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug
parent
04d9a2bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
layout.bottom.js
src/module/layout.bottom.js
+11
-1
No files found.
src/module/layout.bottom.js
View file @
16ef799a
...
@@ -212,10 +212,13 @@ KityMinder.registerModule( "LayoutBottom", function () {
...
@@ -212,10 +212,13 @@ KityMinder.registerModule( "LayoutBottom", function () {
Layout
.
x
=
parentLayout
.
x
+
nodeStyles
.
sub
.
margin
[
3
];
Layout
.
x
=
parentLayout
.
x
+
nodeStyles
.
sub
.
margin
[
3
];
}
}
}
}
if
(
action
===
"append"
||
action
===
"change"
)
{
if
(
action
===
"append"
)
{
Layout
.
branchheight
=
node
.
getRenderContainer
().
getHeight
()
+
nodeStyles
.
sub
.
margin
[
0
]
+
nodeStyles
.
sub
.
margin
[
2
];
Layout
.
branchheight
=
node
.
getRenderContainer
().
getHeight
()
+
nodeStyles
.
sub
.
margin
[
0
]
+
nodeStyles
.
sub
.
margin
[
2
];
}
}
var
prt
=
parent
;
var
prt
=
parent
;
if
(
action
===
"change"
)
{
prt
=
node
;
}
//自底向上更新branchheight
//自底向上更新branchheight
while
(
prt
.
getType
()
!==
"main"
)
{
while
(
prt
.
getType
()
!==
"main"
)
{
var
c
=
prt
.
getChildren
();
var
c
=
prt
.
getChildren
();
...
@@ -360,6 +363,13 @@ KityMinder.registerModule( "LayoutBottom", function () {
...
@@ -360,6 +363,13 @@ KityMinder.registerModule( "LayoutBottom", function () {
translateNode
(
set
[
i
]
);
translateNode
(
set
[
i
]
);
updateConnectAndshIcon
(
set
[
i
]
);
updateConnectAndshIcon
(
set
[
i
]
);
}
}
if
(
node
.
getType
()
===
"sub"
)
{
var
set1
=
updateLayoutMain
();
for
(
var
j
=
0
;
j
<
set1
.
length
;
j
++
)
{
translateNode
(
set1
[
j
]
);
updateConnectAndshIcon
(
set1
[
j
]
);
}
}
},
},
initStyle
:
function
()
{
initStyle
:
function
()
{
var
_root
=
minder
.
getRoot
();
var
_root
=
minder
.
getRoot
();
...
...
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