1
0
Fork 0
mirror of https://gitlab.com/Oreolek/salet.git synced 2024-06-27 20:35:08 +03:00

Scroll fix

This commit is contained in:
Alexander Yakovlev 2016-08-15 18:39:52 +07:00
parent ef1ce16aeb
commit b910cf8a66

View file

@ -71,11 +71,11 @@ class SaletView
# Scrolls the bottom of the screen to the specified point
scrollBottomTo: (value) ->
scrollTopTo(value - $(window).height())
@scrollTopTo(value - $(window).height())
# Scrolls all the way to the bottom of the screen
scrollToBottom: () ->
scrollTopTo($('html').height() - $(window).height());
@scrollTopTo($('html').height() - $(window).height());
###
Removes all content from the page, clearing the main content area.