View | Details | Raw Unified | Return to bug 47286
Collapse All | Expand All

(-)a/management/univention-web/js/widgets/Grid.js (-3 / +7 lines)
 Lines 332-339   define([ Link Here 
332
		},
332
		},
333
333
334
		_onScroll: function() {
334
		_onScroll: function() {
335
			var isActiveTab = !!document.getElementById(this.id).offsetParent;
335
			if (!this._isActiveTab()) {
336
			if (!isActiveTab) {
337
				return;
336
				return;
338
			}
337
			}
339
			var viewPortHeight = dojoWindow.getBox().h;
338
			var viewPortHeight = dojoWindow.getBox().h;
 Lines 344-355   define([ Link Here 
344
			}
343
			}
345
		},
344
		},
346
345
346
		_isActiveTab: function() {
347
			var isActiveTab = !!document.getElementById(this.id).offsetParent;
348
			return isActiveTab;
349
		},
350
347
		_heightenGrid: function(extension) {
351
		_heightenGrid: function(extension) {
348
			var gridHeight = style.get(this._grid.domNode, "height");
352
			var gridHeight = style.get(this._grid.domNode, "height");
349
			var newMaxGridHeight = gridHeight + extension;
353
			var newMaxGridHeight = gridHeight + extension;
350
			style.set(this._grid.domNode, "max-height", newMaxGridHeight + 'px');
354
			style.set(this._grid.domNode, "max-height", newMaxGridHeight + 'px');
351
			this._grid.resize();
355
			this._grid.resize();
352
			var gridIsFullyRendered = this._grid.domNode.scrollHeight < newMaxGridHeight;
356
			var gridIsFullyRendered = this._isActiveTab() && this._grid.domNode.scrollHeight < newMaxGridHeight;
353
			if (gridIsFullyRendered) {
357
			if (gridIsFullyRendered) {
354
				this._updateFooterContent();
358
				this._updateFooterContent();
355
				this._scrollSignal.remove();
359
				this._scrollSignal.remove();

Return to bug 47286