Commit f23ea063 authored by Frank Bergmann's avatar Frank Bergmann

- Gantt Editor:

  Now resizing the surface when maximizing the Gantt Editor
parent cd2285b8
......@@ -21,8 +21,9 @@
*/
Ext.define('PO.controller.ResizeController', {
extend: 'Ext.app.Controller',
id: 'resizeController',
debug: false,
'renderDiv': null, // We assume all app HTML drawn inside this DIV
'outerContainer': null, // Defined during initialization
'redrawPanel': null, // The panel with a needsRedraw variable
......@@ -156,7 +157,6 @@ Ext.define('PO.controller.ResizeController', {
// Disable the "resizable" properties of the outer panel
me.outerContainer.resizer.resizeTracker.disable();
// Disable scrolling in the browser and set vertical scroll to zero
document.documentElement.style.overflow = 'hidden'; // firefox, chrome
document.body.scroll = "no"; // ie only
......@@ -165,6 +165,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();
if (me.debug) console.log('PO.controller.gantt_editor.GanttResizeController.onSwitchToFullScreen: Finished');
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment