Skip to content

Commit

Permalink
Update calculateScrollDimensions, fixes #6 and #3.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossmartin committed Jan 5, 2017
1 parent ddca11c commit 26a4fae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ion-alpha-scroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class IonAlphaScroll {
text-align: center;
}
</style>
<ion-scroll class="ion-alpha-scroll" [ngStyle]="ionAlphaScrollRef.calculateScrollDimensions()" scrollX="false" scrollY="true">
<ion-item-group class="ion-alpha-list-outer">
<div *ngFor="let items of ionAlphaScrollRef.sortedItems | mapToIterable; trackBy:ionAlphaScrollRef.trackBySortedItems">
Expand Down Expand Up @@ -112,7 +112,7 @@ export class IonAlphaScroll {
calculateScrollDimensions() {
let dimensions = this._content.getContentDimensions();
return {
height: dimensions.scrollHeight + 'px',
height: dimensions.contentHeight + 'px',
width: (dimensions.contentWidth - 20) + 'px'
};
}
Expand Down

0 comments on commit 26a4fae

Please sign in to comment.