Skip to content

Commit e583ffe

Browse files
committed
removed redundant method from viewport
1 parent f35df54 commit e583ffe

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/ui-scroll.coffee

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,14 +230,11 @@ angular.module('ui.scroll', [])
230230
if overage > 0
231231
# we need to adjust top padding element before items are removed from top
232232
# to avoid strange behaviour of scroll bar during remove top items when we are at the very bottom
233-
viewport.adjustTopPaddingIntro overageHeight
233+
topPadding.height topPadding.height() + overageHeight
234234
buffer.bof = false
235235
buffer.remove(0, overage)
236236
buffer.first += overage
237237

238-
viewport.adjustTopPaddingIntro = (height) ->
239-
topPadding.height topPadding.height() + height
240-
241238
viewport.adjustPadding = () ->
242239
return if not buffer.length
243240
averageItemHeight = (buffer[buffer.length - 1].element.offset().top +

0 commit comments

Comments
 (0)