Skip to content

Commit

Permalink
fix(module:pulltorefresh): fix element height (#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
nuonuoge committed May 21, 2020
1 parent 6ebc91c commit eb9fd9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/pull-to-refresh/pull-to-refresh.component.ts
Expand Up @@ -127,7 +127,7 @@ export class PullToRefreshComponent implements ControlValueAccessor {
} else {
this.startY = e && e.changedTouches && e.changedTouches[0] && e.changedTouches[0].clientY;
this._clientHeight = this._pullToRefresh.element.nativeElement.clientHeight;
this._currentContentHeight = document.getElementsByTagName('pulltorefresh')[0].clientHeight;
this._currentContentHeight = this.ele.nativeElement.clientHeight;
}
this.transtionCls = '';
}
Expand Down

0 comments on commit eb9fd9c

Please sign in to comment.