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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user