mirror of
https://github.com/flarum/core.git
synced 2025-07-20 00:01:17 +02:00
Fix bug causing page to scroll down when loaded
This commit is contained in:
@@ -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
|
// 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
|
// the body's scroll position to the bottom after we update the
|
||||||
// padding.
|
// padding.
|
||||||
var anchorScroll = $(window).scrollTop() + $(window).height() >= $(document).height();
|
var anchorScroll = $(window).scrollTop() + $(window).height() > $(document).height();
|
||||||
|
|
||||||
var func = animate ? 'animate' : 'css';
|
var func = animate ? 'animate' : 'css';
|
||||||
var paddingBottom = this.get('visible') ? this.get('computedHeight') - Ember.$('#footer').outerHeight(true) : 0;
|
var paddingBottom = this.get('visible') ? this.get('computedHeight') - Ember.$('#footer').outerHeight(true) : 0;
|
||||||
|
Reference in New Issue
Block a user