File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -230,14 +230,11 @@ angular.module('ui.scroll', [])
230
230
if overage > 0
231
231
# we need to adjust top padding element before items are removed from top
232
232
# 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
234
234
buffer .bof = false
235
235
buffer .remove (0 , overage)
236
236
buffer .first += overage
237
237
238
- viewport .adjustTopPaddingIntro = (height ) ->
239
- topPadding .height topPadding .height () + height
240
-
241
238
viewport .adjustPadding = () ->
242
239
return if not buffer .length
243
240
averageItemHeight = (buffer[buffer .length - 1 ].element .offset ().top +
You can’t perform that action at this time.
0 commit comments