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
165f62ee
Commit
165f62ee
authored
Feb 20, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
247ddfd7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
layout.bottom.js
src/module/layout.bottom.js
+21
-1
layout.js
src/module/layout.js
+1
-1
No files found.
src/module/layout.bottom.js
View file @
165f62ee
...
...
@@ -242,8 +242,28 @@ KityMinder.registerModule( "LayoutBottom", function () {
prt
=
prt
.
getParent
();
}
//自顶向下更新y
var
idx
=
prt
.
getIndex
();
var
_buffer
=
prt
.
getChildren
();
while
(
_buffer
.
length
!==
0
)
{
_buffer
=
_buffer
.
concat
(
_buffer
[
0
].
getChildren
()
);
var
_buffer0Layout
=
_buffer
[
0
].
getLayout
();
var
_buffer0Parent
=
_buffer
[
0
].
getParent
();
var
_buffer0ParentLayout
=
_buffer0Parent
.
getLayout
();
var
_buffer0Style
=
nodeStyles
[
_buffer
[
0
].
getType
()
];
var
_buffer0ParentStyle
=
nodeStyles
[
_buffer0Parent
.
getType
()
];
// if ( _buffer[ 0 ].getIndex() === 0 ) {
// _buffer0Layout.y = _buffer0ParentLayout.y + _buffer0Parent.getRenderContainer().getHeight() + _buffer0ParentStyle.margin[ 2 ] + _buffer0Style.margin[ 0 ];
// } else {
// _buffer0Layout.y =
// }
}
// var idx = prt.getIndex();
// for ( var kn = idx; kn < mainnodes.length; kn++ ) {
// var _buffer = mainnodes[ kn ].getChildren();
// while ( _buffer.length !== 0 ) {
// }
// }
//更新main层的节点坐标
}
return
effectSet
;
};
...
...
src/module/layout.js
View file @
165f62ee
...
...
@@ -196,7 +196,7 @@ KityMinder.registerModule( "LayoutModule", function () {
}
},
"defaultOptions"
:
{
"defaultlayoutstyle"
:
"
bottom
"
,
"defaultlayoutstyle"
:
"
default
"
,
"node"
:
{
'appendsiblingnode'
:
'appendsiblingnode'
,
'appendchildnode'
:
'appendchildnode'
,
...
...
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