Add core:page-up and core:page-down support to tree view

This commit is contained in:
Kevin Sawicki
2012-10-05 15:50:32 -07:00
parent 4b20a26974
commit f6c29a1d51
3 changed files with 34 additions and 0 deletions

View File

@@ -18,6 +18,12 @@ $.fn.scrollRight = (newValue) ->
else
@scrollLeft() + @width()
$.fn.pageUp = ->
@scrollTop(@scrollTop() - @height())
$.fn.pageDown = ->
@scrollTop(@scrollTop() + @height())
$.fn.containsElement = (element) ->
(element[0].compareDocumentPosition(this[0]) & 8) == 8