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
b4ca6cd6
Commit
b4ca6cd6
authored
Jun 08, 2017
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Gantt Editor:
Now resizing the surface when maximizing the Gantt Editor
parent
d98ecc73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
gantt-editor.adp
lib/gantt-editor.adp
+1
-0
GanttZoomController.js
www/controller/GanttZoomController.js
+30
-1
No files found.
lib/gantt-editor.adp
View file @
b4ca6cd6
...
@@ -284,6 +284,7 @@ function launchGanttEditor(debug){
...
@@ -284,6 +284,7 @@ function launchGanttEditor(debug){
senchaPreferenceStore: senchaPreferenceStore
senchaPreferenceStore: senchaPreferenceStore
});
});
ganttZoomController.init(this);
ganttZoomController.init(this);
resizeController.ganttZoomController = ganttZoomController;
// Create the panel showing properties of a task, but don't show it yet.
// Create the panel showing properties of a task, but don't show it yet.
var taskPropertyPanel = Ext.create("PO.view.gantt.GanttTaskPropertyPanel", {
var taskPropertyPanel = Ext.create("PO.view.gantt.GanttTaskPropertyPanel", {
...
...
www/controller/GanttZoomController.js
View file @
b4ca6cd6
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
*/
*/
Ext
.
define
(
'GanttEditor.controller.GanttZoomController'
,
{
Ext
.
define
(
'GanttEditor.controller.GanttZoomController'
,
{
extend
:
'Ext.app.Controller'
,
extend
:
'Ext.app.Controller'
,
id
:
'ganttZoomController'
,
refs
:
[
refs
:
[
{
ref
:
'ganttBarPanel'
,
selector
:
'#ganttBarPanel'
},
{
ref
:
'ganttBarPanel'
,
selector
:
'#ganttBarPanel'
},
{
ref
:
'ganttTreePanel'
,
selector
:
'#ganttTreePanel'
}
{
ref
:
'ganttTreePanel'
,
selector
:
'#ganttTreePanel'
}
...
@@ -239,8 +240,36 @@ Ext.define('GanttEditor.controller.GanttZoomController', {
...
@@ -239,8 +240,36 @@ Ext.define('GanttEditor.controller.GanttZoomController', {
}
}
if
(
me
.
debug
)
console
.
log
(
'GanttEditor.controller.GanttZoomController.onButtonZoomCenter: Finished'
);
if
(
me
.
debug
)
console
.
log
(
'GanttEditor.controller.GanttZoomController.onButtonZoomCenter: Finished'
);
}
},
/**
* Somebody pressed the "Fullscreen" button...
* This function is called by the ResizeController.
*/
onSwitchToFullScreen
:
function
()
{
var
me
=
this
;
if
(
me
.
debug
)
console
.
log
(
'GanttEditor.controller.GanttZoomController.onSwitchToFullScreen: Starting'
);
var
ganttBarPanel
=
me
.
getGanttBarPanel
();
var
panelBox
=
ganttBarPanel
.
getBox
();
var
panelWidth
=
panelBox
.
width
;
var
panelHeight
=
panelBox
.
height
;
var
surfaceWidth
=
ganttBarPanel
.
axisEndX
;
if
(
surfaceWidth
<
panelWidth
)
{
ganttBarPanel
.
axisEndX
=
panelWidth
;
ganttBarPanel
.
surface
.
setSize
(
panelWidth
,
panelHeight
);
// persist the changes
me
.
senchaPreferenceStore
.
setPreference
(
'axisEndX'
,
ganttBarPanel
.
axisEndX
);
me
.
senchaPreferenceStore
.
setPreference
(
'scrollX'
,
0
);
ganttBarPanel
.
needsRedraw
=
true
;
// request a redraw
}
if
(
me
.
debug
)
console
.
log
(
'GanttEditor.controller.GanttZoomController.onSwitchToFullScreen: Finished'
);
}
});
});
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