Author: dmorozov
Date: 2007-06-28 12:37:40 -0400 (Thu, 28 Jun 2007)
New Revision: 1374
Modified:
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/layouts/GridLayoutManager.js
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/layouts/LayoutManager.js
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/layouts/VLayoutManager.js
Log:
Fix layout manager
Modified:
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/layouts/GridLayoutManager.js
===================================================================
---
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/layouts/GridLayoutManager.js 2007-06-28
15:44:08 UTC (rev 1373)
+++
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/layouts/GridLayoutManager.js 2007-06-28
16:37:40 UTC (rev 1374)
@@ -7,6 +7,7 @@
ClientUILib.requireClass("ClientUI.common.box.Box");
ClientUILib.requireClass("ClientUI.layouts.VLayoutManager");
+ClientUILib.requireClass("ClientUI.layouts.LayoutManager");
var GridLayout_Enum = {
HEADER: 1,
@@ -36,6 +37,7 @@
ClientUI.layouts.LayoutManager.method("updateLayout").call(this);
var parentBox = this.getContainer();
+ if(parentBox==null) parentBox = this;
var height = parentBox.getViewportHeight();
var width = parentBox.getViewportWidth();
Modified:
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/layouts/LayoutManager.js
===================================================================
---
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/layouts/LayoutManager.js 2007-06-28
15:44:08 UTC (rev 1373)
+++
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/layouts/LayoutManager.js 2007-06-28
16:37:40 UTC (rev 1374)
@@ -75,6 +75,6 @@
ClientUI.layouts.LayoutManager.parentClass.method("updateLayout").call(this);
},
getContainer: function() {
- return this;
+ return this.container;
}
});
Modified:
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/layouts/VLayoutManager.js
===================================================================
---
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/layouts/VLayoutManager.js 2007-06-28
15:44:08 UTC (rev 1373)
+++
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/layouts/VLayoutManager.js 2007-06-28
16:37:40 UTC (rev 1374)
@@ -43,10 +43,10 @@
destroy: function() {
ClientUI.layouts.VLayoutManager.parentClass.method("destroy").call(this);
},
- containerResize: function(event) {
+ /*containerResize: function(event) {
ClientUI.layouts.VLayoutManager.parentClass.method("containerResize").call(this,
event);
this.updateLayout();
- },
+ },*/
addPane: function(align, pane) {
if(!this.panels) { this.panels = []; }
@@ -61,6 +61,7 @@
ClientUI.layouts.VLayoutManager.parentClass.method("updateLayout").call(this);
var parentBox = this.getContainer();
+ if(!parentBox) parentBox = this;
var height = parentBox.getViewportHeight();
var width = parentBox.getViewportWidth();
if(ClientUILib.isGecko) {
Show replies by date