ngx-virtual-scroller
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -0,1 +1,5 @@ | ||
# v1.0.16 | ||
* Bug fix to sticky header with parentScroll | ||
# v1.0.15 | ||
@@ -2,0 +6,0 @@ |
@@ -487,3 +487,5 @@ "use strict"; | ||
if (_this.headerElementRef) { | ||
var offset = _this.element.nativeElement[_this._scrollType] - viewport.padding; | ||
var scrollPosition = _this.getScrollElement()[_this._scrollType]; | ||
var containerOffset = _this.getElementsOffset(); | ||
var offset = Math.max(scrollPosition - viewport.padding - containerOffset + _this.headerElementRef.nativeElement.clientHeight, 0); | ||
_this.renderer.setStyle(_this.headerElementRef.nativeElement, 'transform', _this._translateDir + "(" + offset + "px)"); | ||
@@ -490,0 +492,0 @@ _this.renderer.setStyle(_this.headerElementRef.nativeElement, 'webkitTransform', _this._translateDir + "(" + offset + "px)"); |
{ | ||
"name": "ngx-virtual-scroller", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "Angular 4+ module for virtual -infinite- list. Supports horizontal/vertical, variable heights, & multi-column", | ||
@@ -5,0 +5,0 @@ "main": "dist/virtual-scroller.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13249063
17089