--- a/cms/app-client/app/components/player-component.js Mon Oct 17 14:50:30 2016 +0530
+++ b/cms/app-client/app/components/player-component.js Mon Oct 17 19:51:14 2016 +0530
@@ -19,11 +19,6 @@
return this.get('player').get('model');
}),
- didRender: function() {
- this.textAutoscroll(Ember.$('#' + this.elementId).find('.title'));
- this.textAutoscroll(Ember.$('#' + this.elementId).find('.author'));
- },
-
modelLoaded: Ember.observer('player.model', function() {
var items = this.get('player').get('items');
var index = items.indexOf(this.get('player').get('item'));
@@ -67,6 +62,11 @@
this.send('toggle');
}
}));
+
+ setTimeout(Ember.run.bind(this, function() {
+ this.textAutoscroll(Ember.$('#' + this.elementId).find('.title'));
+ this.textAutoscroll(Ember.$('#' + this.elementId).find('.author'));
+ }), 500);
},
textAutoscroll: function(jElement) {