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
1c1baed8
Commit
1c1baed8
authored
Jun 26, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed layout
parent
38a32e73
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
filetree.js
src/layout/filetree.js
+1
-1
filetree.js
src/theme/filetree.js
+2
-2
No files found.
src/layout/filetree.js
View file @
1c1baed8
...
@@ -41,7 +41,7 @@ KityMinder.registerLayout('filetree', kity.createClass({
...
@@ -41,7 +41,7 @@ KityMinder.registerLayout('filetree', kity.createClass({
y
+=
child
.
getStyle
(
'margin-top'
);
y
+=
child
.
getStyle
(
'margin-top'
);
child
.
setLayoutTransform
(
new
kity
.
Matrix
().
translate
(
x
,
y
));
child
.
setLayoutTransform
(
new
kity
.
Matrix
().
translate
(
x
,
y
));
y
+=
childTreeBox
.
height
+
children
[
i
].
getStyle
(
'margin-bottom'
);
y
+=
childTreeBox
.
height
+
children
[
i
].
getStyle
(
'margin-bottom'
);
child
.
setLayoutVector
(
new
kity
.
Vector
(
childContentBox
.
left
+
10
,
childContentBox
.
bottom
));
child
.
setLayoutVector
(
new
kity
.
Vector
(
childContentBox
.
left
+
6
,
childContentBox
.
bottom
));
}
}
}
}
},
},
...
...
src/theme/filetree.js
View file @
1c1baed8
...
@@ -13,7 +13,7 @@ KityMinder.registerTheme('filetree', {
...
@@ -13,7 +13,7 @@ KityMinder.registerTheme('filetree', {
'main-stroke'
:
'none'
,
'main-stroke'
:
'none'
,
'main-font-size'
:
16
,
'main-font-size'
:
16
,
'main-padding'
:
[
6
,
20
],
'main-padding'
:
[
6
,
20
],
'main-margin'
:
[
30
,
0
,
10
,
0
],
'main-margin'
:
[
15
,
15
,
15
,
1
0
],
'main-radius'
:
10
,
'main-radius'
:
10
,
'main-space'
:
5
,
'main-space'
:
5
,
...
@@ -22,7 +22,7 @@ KityMinder.registerTheme('filetree', {
...
@@ -22,7 +22,7 @@ KityMinder.registerTheme('filetree', {
'sub-stroke'
:
'none'
,
'sub-stroke'
:
'none'
,
'sub-font-size'
:
12
,
'sub-font-size'
:
12
,
'sub-padding'
:
[
5
,
10
],
'sub-padding'
:
[
5
,
10
],
'sub-margin'
:
[
5
,
15
,
10
,
5
],
'sub-margin'
:
[
15
,
15
,
15
,
10
],
'sub-radius'
:
5
,
'sub-radius'
:
5
,
'sub-space'
:
5
,
'sub-space'
:
5
,
...
...
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