Author: maksimkaszynski
Date: 2007-06-07 13:45:01 -0400 (Thu, 07 Jun 2007)
New Revision: 1084
Modified:
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid/GridBody.js
Log:
fixed clickthrough element
Modified:
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid/GridBody.js
===================================================================
---
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid/GridBody.js 2007-06-07
15:39:23 UTC (rev 1083)
+++
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid/GridBody.js 2007-06-07
17:45:01 UTC (rev 1084)
@@ -97,6 +97,8 @@
for(var i=0; i<childs.length; i++) {
if(childs[i].tagName && childs[i].tagName.toLowerCase() == "div") {
this.container = new ClientUI.common.box.Box(childs[i], null, true);
+ this.container.makeAbsolute();
+ this.container.setStyle({'z-index' : 100});
if(!ClientUILib.isIE) this.container.setStyle({overflow: 'hidden'});
break;
}
@@ -107,6 +109,7 @@
this.scrollBox.makeAbsolute();
this.scrollBox.setWidth(this.getWidth());
this.scrollBox.setHeight(this.getHeight());
+ this.scrollBox.setStyle({'z-index' : 0});
this.sizeBox = new ClientUI.common.box.Box(null, this.scrollBox.getElement());
this.sizeBox.makeAbsolute();
@@ -260,7 +263,8 @@
this.contentBox.setHeight(height - fixH);
this.frozenContentBox.setWidth(frozenContentWidth);
this.frozenContentBox.setHeight(height - fixH);
-
+ this.container.setHeight(height - fixH);
+
var scrollPos = Math.min(totalWidth - viewWidth, scrollLeft);
this.grid.adjustScrollPosition(scrollPos);
Show replies by date