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
95c0fc2a
Commit
95c0fc2a
authored
Jan 02, 2021
by
Project Open
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed issue allowing to reuse the controller in the Budget Tree portlet
parent
074ca5a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
ResizeController.js
www/controller/ResizeController.js
+9
-8
No files found.
www/controller/ResizeController.js
View file @
95c0fc2a
...
...
@@ -143,8 +143,8 @@ Ext.define('PO.controller.ResizeController', {
me
.
fullScreenP
=
true
;
if
(
me
.
debug
)
console
.
log
(
'PO.controller.gantt_editor.GanttResizeController.onSwitchToFullScreen: Starting'
);
// make sure the main Browser window is not scrolled down
window
.
scrollTo
(
0
,
0
);
// make sure the main Browser window is not scrolled down
window
.
scrollTo
(
0
,
0
);
me
.
outerContainer
.
setSize
(
Ext
.
getBody
().
getViewSize
().
width
,
Ext
.
getBody
().
getViewSize
().
height
);
...
...
@@ -168,9 +168,10 @@ Ext.define('PO.controller.ResizeController', {
document
.
body
.
scrollLeft
=
0
;
document
.
body
.
scrollTop
=
0
;
// Check if the surface is smaller than the ganttPanel
// and resize and redraw the surface if necessary
me
.
ganttZoomController
.
onSwitchToFullScreen
();
// Check if the surface is smaller than the ganttPanel
// and resize and redraw the surface if necessary
if
(
me
.
ganttZoomController
)
me
.
ganttZoomController
.
onSwitchToFullScreen
();
if
(
me
.
debug
)
console
.
log
(
'PO.controller.gantt_editor.GanttResizeController.onSwitchToFullScreen: Finished'
);
},
...
...
@@ -212,13 +213,13 @@ window.onbeforeunload = function() {
var
dirty
=
false
;
var
taskTreeStore
=
Ext
.
StoreManager
.
get
(
'taskTreeStore'
);
taskTreeStore
.
tree
.
root
.
eachChild
(
function
(
model
)
{
if
(
model
.
dirty
)
dirty
=
true
;
if
(
model
.
dirty
)
dirty
=
true
;
});
console
.
log
(
'onBeforeUnload: Finished'
);
if
(
dirty
)
{
return
"Are you sure you want to navigate away?"
;
return
"Are you sure you want to navigate away?"
;
}
else
{
return
;
return
;
}
}
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