Skip to content

Commit 12edb36

Browse files
committed
padding element heights setting fix
1 parent 2b099d1 commit 12edb36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ui-scroll.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ angular.module('ui.scroll', [])
143143

144144
topPadding = new Padding template
145145
element.before topPadding
146-
viewport.topPadding = (height) -> topPadding.height height
146+
viewport.topPadding = -> topPadding.height.apply(topPadding, arguments)
147147

148148
bottomPadding = new Padding template
149149
element.after bottomPadding
150-
viewport.bottomPadding = (height) -> bottomPadding.height height
150+
viewport.bottomPadding = -> bottomPadding.height.apply(bottomPadding, arguments)
151151

152152
viewport.bottomDataPos = ->
153153
(viewport[0].scrollHeight ? viewport[0].document.documentElement.scrollHeight) - bottomPadding.height()

0 commit comments

Comments
 (0)