projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e1e805
)
Roo/ContentPanel.js
author
Alan
<alan@roojs.com>
Fri, 10 Dec 2021 07:37:57 +0000
(15:37 +0800)
committer
Alan
<alan@roojs.com>
Fri, 10 Dec 2021 07:37:57 +0000
(15:37 +0800)
Roo/ContentPanel.js
patch
|
blob
|
history
diff --git
a/Roo/ContentPanel.js
b/Roo/ContentPanel.js
index
818aee4
..
3a763fe
100644
(file)
--- a/
Roo/ContentPanel.js
+++ b/
Roo/ContentPanel.js
@@
-471,7
+471,11
@@
layout.addxtype({
*/
Roo.GridPanel = function(grid, config){
-
+ // universal ctor...
+ if (typeof(grid.grid) != 'undefined') {
+ config = grid;
+ grid = config.grid;
+ }
this.wrapper = Roo.DomHelper.append(document.body, // wrapper for IE7 strict & safari scroll issue
{tag: "div", cls: "x-layout-grid-wrapper x-layout-inactive-content"}, true);