Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sencha-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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
sencha-core
Commits
558583b6
Commit
558583b6
authored
Jun 15, 2016
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Moved nodesInTree auxillary function to the shared class
parent
492d35df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
AbstractGanttPanel.js
www/view/gantt/AbstractGanttPanel.js
+20
-0
No files found.
www/view/gantt/AbstractGanttPanel.js
View file @
558583b6
...
@@ -234,6 +234,26 @@ Ext.define('PO.view.gantt.AbstractGanttPanel', {
...
@@ -234,6 +234,26 @@ Ext.define('PO.view.gantt.AbstractGanttPanel', {
return
result
;
return
result
;
},
},
/**
* Calculate the number of nodes in an arbitrary tree model
*/
nodesInTree
:
function
(
node
)
{
var
me
=
this
;
var
count
=
1
;
// if (me.debug) console.log('PO.view.gantt.GanttBarPanel.nodesInTree: Starting');
if
(
node
.
isExpanded
()
||
node
.
isRoot
())
{
var
children
=
node
.
childNodes
;
children
.
forEach
(
function
(
child
)
{
count
=
count
+
me
.
nodesInTree
(
child
);
});
}
// if (me.debug) console.log('PO.view.gantt.GanttBarPanel.nodesInTree: Finished');
return
count
;
},
/**
/**
* Draw all Gantt bars
* Draw all Gantt bars
...
...
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