Skip to content
Snippets Groups Projects
Commit 4593c221 authored by Fuentes Serna  Juan Mariano (ID SIS)'s avatar Fuentes Serna Juan Mariano (ID SIS)
Browse files

SSDM-6169 : Bugfix, App breaks when CKEditor is in full screen mode and the user resizes the window

parent a51c12e6
No related branches found
No related tags found
No related merge requests found
...@@ -376,7 +376,7 @@ var LayoutManager = { ...@@ -376,7 +376,7 @@ var LayoutManager = {
}, },
resize : function(view, forceFirstTime) { resize : function(view, forceFirstTime) {
if(this.canReload()) { if(this.canReload()) {
console.log("reloadView"); // console.log("reloadView");
this.reloadView(view, forceFirstTime); this.reloadView(view, forceFirstTime);
} }
} }
......
...@@ -833,6 +833,8 @@ var FormUtil = new function() { ...@@ -833,6 +833,8 @@ var FormUtil = new function() {
var destroyAndRecreateFunc = destroyAndRecreate($component); var destroyAndRecreateFunc = destroyAndRecreate($component);
mainController.currentView._windowHandlers.push(destroyAndRecreateFunc);
destroyAndRecreateFunc(); destroyAndRecreateFunc();
LayoutManager.addResizeEventHandler(destroyAndRecreateFunc); LayoutManager.addResizeEventHandler(destroyAndRecreateFunc);
......
...@@ -18,6 +18,14 @@ function DataSetFormController(parentController, mode, entity, dataSet, isMini) ...@@ -18,6 +18,14 @@ function DataSetFormController(parentController, mode, entity, dataSet, isMini)
this._parentController = parentController; this._parentController = parentController;
this._dataSetFormModel = new DataSetFormModel(mode, entity, dataSet, isMini); this._dataSetFormModel = new DataSetFormModel(mode, entity, dataSet, isMini);
this._dataSetFormView = new DataSetFormView(this, this._dataSetFormModel); this._dataSetFormView = new DataSetFormView(this, this._dataSetFormModel);
this._windowHandlers = [];
this.finalize = function() {
for(var whIdx = 0; whIdx < this._windowHandlers.length; whIdx++) {
$(window).off("resize", this._windowHandlers[whIdx]);
}
$("#mainContainer").css("overflow-y", "auto");
}
this.init = function(views) { this.init = function(views) {
var _this = this; var _this = this;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment