Skip to content

Commit

Permalink
fix(virtual-scroll): fix issue with virtual scroll not respecting the…
Browse files Browse the repository at this point in the history
… parent's width (#943)
  • Loading branch information
emoralesb05 authored Oct 22, 2017
1 parent 798800b commit 8849b00
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<div [style.height.px]="totalHeight"></div>
<div [style.transform]="offsetTransform"
[style.position]="'absolute'"
[style.min-width.%]="100">
[style.width.%]="100">
<ng-template let-row
let-index="index"
ngFor
[ngForOf]="virtualData"
[ngForTrackBy]="trackBy">
<div #rowElement>
<div #rowElement
[style.width.%]="100">
<ng-template *ngIf="_rowTemplate"
[ngTemplateOutlet]="_rowTemplate.templateRef"
[ngTemplateOutletContext]="{row: row,
Expand Down

0 comments on commit 8849b00

Please sign in to comment.