Removed debug messages and made it work with ff

This commit is contained in:
Andreas Stöckel 2011-08-31 15:58:24 +00:00
parent 035a4d369f
commit c5c90fbce0
3 changed files with 15 additions and 8 deletions

View File

@ -184,12 +184,10 @@ var et2_dataview_container = Class.extend(et2_dataview_IInvalidatable, {
// Increment the height value for each visible container node
var self = this;
$j(this._nodes, ":visible").each(function() {
height += self._nodeHeight(this);
height += self._nodeHeight(this[0]);
});
}
console.log(height);
return height;
},
@ -237,7 +235,7 @@ else
{
et2_dataview_container.prototype._nodeHeight = function(_node)
{
return $j(_node).outerHeight(true);
return _node.offsetHeight;
}
}

View File

@ -20,6 +20,16 @@
et2_dataview_view_partitionTree;
*/
/**
* Determines how many pixels the view range of the gridview is extended.
*/
var ET2_GRID_VIEW_EXT = 25;
/**
* Determines the timeout after which the scroll-event is processed.
*/
var ET2_GRID_SCROLL_TIMEOUT = 25;
var et2_dataview_grid = Class.extend(et2_dataview_IViewRange, {
/**
@ -226,10 +236,10 @@ var et2_dataview_grid = Class.extend(et2_dataview_IViewRange, {
// function
e.data._scrollTimeout = window.setTimeout(function() {
e.data.setViewRange(et2_range(
e.data.scrollarea.scrollTop(),
e.data._height
e.data.scrollarea.scrollTop() - ET2_GRID_VIEW_EXT,
e.data._height + ET2_GRID_VIEW_EXT * 2
));
}, 25);
}, ET2_GRID_SCROLL_TIMEOUT);
})
.height(this._scrollHeight)
.appendTo(this.outerCell);

View File

@ -127,7 +127,6 @@ var et2_dataview_gridContainer = Class.extend({
// Rebuild the column stylesheets
this.columnMgr.setTotalWidth(_w - this.scrollbarWidth);
et2_debug("log", _w - this.scrollbarWidth);
this._updateColumns();
}