Skip to content

Commit 5aa1a2c

Browse files
authored
Merge pull request #12364 from IgniteUI/mkirova/fix-12313
fix(igxForOf): Do not set scrollbar size in case container size is st…
2 parents 1b69c69 + 467a92f commit 5aa1a2c

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
@@ -1281,7 +1281,7 @@ export class IgxForOfDirective<T> implements OnInit, OnChanges, DoCheck, OnDestr
12811281
this.dc.instance.notVirtual = !(this.igxForContainerSize && this.dc && this.state.chunkSize < count);
12821282
const scrollable = this.isScrollable();
12831283
if (this.igxForScrollOrientation === 'horizontal') {
1284-
const totalWidth = this.igxForContainerSize ? this.initSizesCache(this.igxForOf) : 0;
1284+
const totalWidth = parseInt(this.igxForContainerSize, 10) > 0 ? this.initSizesCache(this.igxForOf) : 0;
12851285
this.scrollComponent.nativeElement.style.width = this.igxForContainerSize + 'px';
12861286
this.scrollComponent.size = totalWidth;
12871287
if (totalWidth <= parseInt(this.igxForContainerSize, 10)) {

0 commit comments

Comments
 (0)