Skip to content

Commit d8df060

Browse files
authored
Merge branch '15.0.x' into mkirova/fix-12300-master
2 parents f4b2e5a + 5aa1a2c commit d8df060

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/directives/for-of/for_of.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,7 @@ export class IgxForOfDirective<T> implements OnInit, OnChanges, DoCheck, OnDestr
12821282
this.dc.instance.notVirtual = !(this.igxForContainerSize && this.dc && this.state.chunkSize < count);
12831283
const scrollable = this.isScrollable();
12841284
if (this.igxForScrollOrientation === 'horizontal') {
1285-
const totalWidth = this.igxForContainerSize ? this.initSizesCache(this.igxForOf) : 0;
1285+
const totalWidth = parseInt(this.igxForContainerSize, 10) > 0 ? this.initSizesCache(this.igxForOf) : 0;
12861286
this.scrollComponent.nativeElement.style.width = this.igxForContainerSize + 'px';
12871287
this.scrollComponent.size = totalWidth;
12881288
if (totalWidth <= parseInt(this.igxForContainerSize, 10)) {

0 commit comments

Comments
 (0)