mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(scroll): safari scroll content height
Safari and Chrome have two different opinions of what `scrollHeight` means. It appears Safari is not taking into account that the parent element can have padding applied which changes the scrollHeight. Closes #1411
This commit is contained in:
@@ -372,7 +372,7 @@ ionic.views.Scroll = ionic.views.View.inherit({
|
||||
return Math.max(self.__content.scrollWidth, self.__content.offsetWidth);
|
||||
},
|
||||
getContentHeight: function() {
|
||||
return Math.max(self.__content.scrollHeight, self.__content.offsetHeight);
|
||||
return Math.max(self.__content.scrollHeight, self.__content.offsetHeight + self.__content.offsetTop);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user