chore(): fix pull-to-refresh types

This commit is contained in:
Adam Bradley
2016-01-14 13:20:52 -06:00
parent e67c79104f
commit 6dc7b25c5f
4 changed files with 44 additions and 56 deletions

View File

@@ -276,7 +276,7 @@ export class ItemInput {
// find out if text input should be manually scrolled into view
let ele = this._elementRef.nativeElement;
let scrollData = ItemInput.getScrollData(ele.offsetTop, ele.offsetHeight, scrollView.getDimensions(), this.keyboardHeight, this._platform.height());
let scrollData = ItemInput.getScrollData(ele.offsetTop, ele.offsetHeight, scrollView.getContentDimensions(), this.keyboardHeight, this._platform.height());
if (scrollData.scrollAmount > -3 && scrollData.scrollAmount < 3) {
// the text input is in a safe position that doesn't require
// it to be scrolled into view, just set focus now