We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b099d1 commit 12edb36Copy full SHA for 12edb36
src/ui-scroll.coffee
@@ -143,11 +143,11 @@ angular.module('ui.scroll', [])
143
144
topPadding = new Padding template
145
element.before topPadding
146
- viewport.topPadding = (height) -> topPadding.height height
+ viewport.topPadding = -> topPadding.height.apply(topPadding, arguments)
147
148
bottomPadding = new Padding template
149
element.after bottomPadding
150
- viewport.bottomPadding = (height) -> bottomPadding.height height
+ viewport.bottomPadding = -> bottomPadding.height.apply(bottomPadding, arguments)
151
152
viewport.bottomDataPos = ->
153
(viewport[0].scrollHeight ? viewport[0].document.documentElement.scrollHeight) - bottomPadding.height()
0 commit comments