projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7731d46
)
Roo/bootstrap/layout/Manager.js
author
Alan Knowles
<alan@roojs.com>
Thu, 13 Jul 2017 05:53:58 +0000
(13:53 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 13 Jul 2017 05:53:58 +0000
(13:53 +0800)
Roo/bootstrap/layout/Manager.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/layout/Manager.js
b/Roo/bootstrap/layout/Manager.js
index
f2304fb
..
85a0412
100644
(file)
--- a/
Roo/bootstrap/layout/Manager.js
+++ b/
Roo/bootstrap/layout/Manager.js
@@
-61,7
+61,10
@@
Roo.bootstrap.layout.Manager = function(config)
"regionexpanded" : true
});
this.updating = false;
- Roo.EventManager.onWindowResize(this.onWindowResize, this, true);
+ if (this.el) {
+ this.initEvents();
+ }
+
};
Roo.extend(Roo.bootstrap.layout.Manager, Roo.bootstrap.Component, {
@@
-75,7
+78,11
@@
Roo.extend(Roo.bootstrap.layout.Manager, Roo.bootstrap.Component, {
updating : false,
-
+ initEvents: function()
+ {
+ Roo.EventManager.onWindowResize(this.onWindowResize, this, true);
+
+ }
/**
* Returns true if this layout is currently being updated