1
0
mirror of https://github.com/flarum/core.git synced 2025-07-26 03:01:22 +02:00

Fix index pane autoscroll

This commit is contained in:
Toby Zerner
2015-02-08 15:57:33 +10:30
parent ccb49a7120
commit 9fd935285f

View File

@@ -55,6 +55,7 @@ export default Ember.View.extend({
},
scrollToDiscussion: function() {
if (this.get('controller.paned')) {
var view = this;
Ember.run.scheduleOnce('afterRender', function() {
var $index = view.$('.index-area');
@@ -67,7 +68,8 @@ export default Ember.View.extend({
}
}
});
}.observes('controller.controllers.discussion.model'),
}
}.observes('controller.paned'),
populateSidebarDefault: function(sidebar) {
var view = this;