mirror of
https://github.com/flarum/core.git
synced 2025-07-28 04:00:40 +02:00
Fix index pane autoscroll
This commit is contained in:
@@ -55,6 +55,7 @@ export default Ember.View.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
scrollToDiscussion: function() {
|
scrollToDiscussion: function() {
|
||||||
|
if (this.get('controller.paned')) {
|
||||||
var view = this;
|
var view = this;
|
||||||
Ember.run.scheduleOnce('afterRender', function() {
|
Ember.run.scheduleOnce('afterRender', function() {
|
||||||
var $index = view.$('.index-area');
|
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) {
|
populateSidebarDefault: function(sidebar) {
|
||||||
var view = this;
|
var view = this;
|
||||||
|
Reference in New Issue
Block a user