Skip to content

Commit ba3600d

Browse files
committed
fix(scroll): calculate padding-bottom
Closes #2174
1 parent fbcd00a commit ba3600d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/views/scrollView.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ ionic.views.Scroll = ionic.views.View.inherit({
372372
return Math.max(self.__content.scrollWidth, self.__content.offsetWidth);
373373
},
374374
getContentHeight: function() {
375-
return Math.max(self.__content.scrollHeight, self.__content.offsetHeight + self.__content.offsetTop);
375+
return Math.max(self.__content.scrollHeight, self.__content.offsetHeight + (self.__content.offsetTop * 2));
376376
}
377377
};
378378

@@ -906,7 +906,7 @@ ionic.views.Scroll = ionic.views.View.inherit({
906906
this.mouseMove = this.mouseDown = this.mouseUp = this.mouseWheel =
907907
this.touchStart = this.touchMove = this.touchEnd = this.touchCancel = angular.noop;
908908

909-
this.resize = this.scrollTo = this.zoomTo =
909+
this.resize = this.scrollTo = this.zoomTo =
910910
this.__scrollingComplete = angular.noop;
911911
container = null;
912912
},

0 commit comments

Comments
 (0)