Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-gantt-editor
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
intranet-gantt-editor
Commits
a98083cc
Commit
a98083cc
authored
Jul 01, 2015
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- GanttEditor:
Fixed initial project scaling
parent
6f87db4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
gantt-editor.adp
lib/gantt-editor.adp
+10
-4
No files found.
lib/gantt-editor.adp
View file @
a98083cc
...
...
@@ -672,6 +672,7 @@ Ext.define('PO.view.gantt_editor.GanttBarPanel', {
function launchGanttEditor(){
var taskTreeStore = Ext.StoreManager.get('taskTreeStore');
var senchaPreferenceStore = Ext.StoreManager.get('senchaPreferenceStore');
var oneDayMiliseconds = 24 * 3600 * 1000;
/* ***********************************************************************
* Help Menu
...
...
@@ -1263,18 +1264,23 @@ function launchGanttEditor(){
});
// Right-hand side Gantt display
var reportStartTime = new Date('@report_start_date@').getTime();
var reportEndTime = new Date('@report_end_date@').getTime();
var ganttBarPanel = Ext.create('PO.view.gantt_editor.GanttBarPanel', {
region: 'center',
viewBox: false,
width: 300,
height: 300,
width: 600,
height: 500,
axisEndX: 2000,
axisStartDate: new Date(reportStartTime - 7 * oneDayMiliseconds),
axisEndDate: new Date(reportEndTime + 1.5 * (reportEndTime - reportStartTime) + 7 * oneDayMiliseconds ),
overflowX: 'scroll', // Allows for horizontal scrolling, but not vertical
scrollFlags: {x: true},
objectPanel: ganttTreePanel,
objectStore: taskTreeStore,
preferenceStore: senchaPreferenceStore,
axisStartDate: new Date('@report_start_date@'),
axisEndDate: new Date('@report_end_date@'),
gradients: [
{id:'gradientId', angle:66, stops:{0:{color:'#cdf'}, 100:{color:'#ace'}}},
{id:'gradientId2', angle:0, stops:{0:{color:'#590'}, 20:{color:'#599'}, 100:{color:'#ddd'}}}
...
...
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