Skip to content

Commit 9ced132

Browse files
committed
chore(build): fix the build
1 parent f69b94d commit 9ced132

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

js/utils/dom.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@
117117
if (el.offsetParent) {
118118
do {
119119
curtop += el.offsetTop;
120-
} while (el = el.offsetParent);
120+
el = el.offsetParent;
121+
} while (el)
121122
return curtop;
122123
}
123124
},

js/views/scrollViewNative.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@
346346
}
347347

348348
// D
349-
var scrollBottomOffsetToTop = rect.bottom;
349+
//var scrollBottomOffsetToTop = rect.bottom;
350350
// D - A
351351
scrollViewOffsetHeight = self.__originalContainerHeight;
352352
//console.log('Scroll view offset height', scrollViewOffsetHeight);
@@ -382,7 +382,7 @@
382382
// if there are things below the scroll view account for them and
383383
// subtract them from the keyboard height when resizing
384384
// E - D E D
385-
var scrollBottomOffsetToBottom = e.detail.viewportHeight - scrollBottomOffsetToTop;
385+
//var scrollBottomOffsetToBottom = e.detail.viewportHeight - scrollBottomOffsetToTop;
386386

387387
// 0 or D - B if D > B E - B E - D
388388
//var keyboardOffset = e.detail.keyboardHeight - scrollBottomOffsetToBottom;

0 commit comments

Comments
 (0)