mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 23:19:04 +01:00
Removed debug messages and made it work with ff
This commit is contained in:
parent
035a4d369f
commit
c5c90fbce0
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user