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
63e5cf18
Commit
63e5cf18
authored
Jan 17, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正了select引用传错的问题
parent
94f12382
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
minder.select.js
src/core/minder.select.js
+3
-2
layout.default.js
src/module/layout.default.js
+3
-3
layout.js
src/module/layout.js
+0
-1
No files found.
src/core/minder.select.js
View file @
63e5cf18
...
...
@@ -25,8 +25,9 @@ kity.extendClass( Minder, function () {
return
this
.
getSelectedNodes
()[
0
];
},
removeAllSelectedNodes
:
function
()
{
var
me
=
this
;
Utils
.
each
(
this
.
getSelectedNodes
(),
function
(
i
,
n
)
{
unhighlightNode
(
this
,
n
);
unhighlightNode
(
me
,
n
);
}
);
this
.
_selectedNodes
=
[];
},
...
...
@@ -35,7 +36,7 @@ kity.extendClass( Minder, function () {
var
me
=
this
;
utils
.
each
(
utils
.
isArray
(
nodes
)
?
nodes
:
[
nodes
],
function
(
i
,
n
)
{
me
.
_selectedNodes
.
push
(
n
);
highlightNode
(
this
,
n
);
highlightNode
(
me
,
n
);
}
);
return
this
;
},
...
...
src/module/layout.default.js
View file @
63e5cf18
...
...
@@ -256,7 +256,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
node
.
setData
(
"branchheight"
,
branchheight
);
}
var
siblings
=
parent
.
getData
(
appendside
+
"List"
)
||
parent
.
getChildren
();
var
get
Actual
Height
=
function
(
node
,
appendside
)
{
var
get
Child
Height
=
function
(
node
,
appendside
)
{
var
sum
=
0
;
var
children
=
node
.
getData
(
appendside
+
"List"
)
||
node
.
getChildren
();
for
(
var
i
=
0
;
i
<
children
.
length
;
i
++
)
{
...
...
@@ -272,8 +272,8 @@ KityMinder.registerModule( "LayoutDefault", function () {
var
prt
=
parent
;
do
{
var
minH
=
prt
.
getRenderContainer
().
getHeight
()
+
marginTop
+
marginBottom
;
var
actualH
=
getActual
Height
(
prt
,
appendside
);
var
branchH
=
(
minH
>
actualH
?
minH
:
actual
H
);
var
childH
=
getChild
Height
(
prt
,
appendside
);
var
branchH
=
(
minH
>
childH
?
minH
:
child
H
);
if
(
prt
.
getParent
()
)
{
prt
.
setData
(
"branchheight"
,
branchH
);
...
...
src/module/layout.js
View file @
63e5cf18
...
...
@@ -26,7 +26,6 @@ KityMinder.registerModule( "LayoutModule", function () {
base
:
Command
,
execute
:
function
(
km
,
node
)
{
var
parent
=
km
.
getSelectedNode
();
return
km
.
appendChildNode
(
parent
,
node
);
}
};
...
...
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