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
74a372ea
Commit
74a372ea
authored
May 21, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
向下布局
parent
ac8c0a2a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
16 deletions
+30
-16
contextmenu.js
src/adapter/contextmenu.js
+1
-1
layout.js
src/adapter/layout.js
+14
-14
layout.js
src/module/layout.js
+15
-1
No files found.
src/adapter/contextmenu.js
View file @
74a372ea
...
...
@@ -31,7 +31,7 @@ KM.registerUI( 'contextmenu', function () {
var
node
=
e
.
getTargetNode
();
if
(
node
){
this
.
removeAllSelectedNodes
();
this
.
select
(
node
)
this
.
select
(
node
)
;
}
...
...
src/adapter/layout.js
View file @
74a372ea
...
...
@@ -48,19 +48,19 @@ KM.registerToolbarUI('switchlayout', function (name) {
});
var
data
=
[];
utils
.
each
(
me
.
getLayoutStyleItems
(),
function
(
i
,
v
)
{
data
.
push
({
label
:
me
.
getLang
(
'tooltips.'
+
name
)
+
' '
+
v
,
cmdName
:
'switchlayout'
,
exec
:
function
()
{
me
.
execCommand
(
'switchlayout'
,
v
);
}
})
});
data
.
push
({
divider
:
1
});
me
.
addContextmenu
(
data
);
//
var data = [];
//
utils.each(me.getLayoutStyleItems(), function (i, v) {
//
data.push({
//
label: me.getLang('tooltips.' + name) + ' ' + v,
//
cmdName: 'switchlayout',
//
exec: function () {
//
me.execCommand('switchlayout', v);
//
}
// });
//
});
//
data.push({
//
divider: 1
//
});
//
me.addContextmenu(data);
return
comboboxWidget
.
button
().
addClass
(
'kmui-combobox'
);
});
\ No newline at end of file
src/module/layout.js
View file @
74a372ea
...
...
@@ -283,7 +283,21 @@ KityMinder.registerModule("LayoutModule", function () {
cmdName
:
'removenode'
},
{
divider
:
1
}
},{
label
:
this
.
getLang
(
'layout.default'
),
exec
:
function
()
{
this
.
execCommand
(
'switchlayout'
,
'default'
);
this
.
initStyle
();
},
cmdName
:
'switchlayout'
},{
label
:
this
.
getLang
(
'layout.bottom'
),
exec
:
function
()
{
this
.
execCommand
(
'switchlayout'
,
'bottom'
);
this
.
initStyle
();
},
cmdName
:
'switchlayout'
}
],
"defaultOptions"
:
{
...
...
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