From 0262641c848abc4a1b88db15b5c164cc137e0d3f Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 5 Mar 2015 12:23:55 +1030 Subject: [PATCH] Fix bug causing page to scroll down when loaded --- ember/app/views/composer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ember/app/views/composer.js b/ember/app/views/composer.js index f1bba36a9..959ea3af4 100644 --- a/ember/app/views/composer.js +++ b/ember/app/views/composer.js @@ -96,7 +96,7 @@ export default Ember.View.extend(HasItemLists, { // right to the bottom of the page. If we are, we'll want to anchor // the body's scroll position to the bottom after we update the // padding. - var anchorScroll = $(window).scrollTop() + $(window).height() >= $(document).height(); + var anchorScroll = $(window).scrollTop() + $(window).height() > $(document).height(); var func = animate ? 'animate' : 'css'; var paddingBottom = this.get('visible') ? this.get('computedHeight') - Ember.$('#footer').outerHeight(true) : 0;