Scrollbar don't see height of div because scrollbar update apply before child elements render. How i can watch what elements is compiled?
I used watch to see when object adding to array. It works fine, but tinyscrollab_update sees empty div, because ng-repeat no compiled yet.
$scope.$watch('comments', function(){
angular.element('#comment-list').tinyscrollbar_update('relative');
});
I write it in directive.
app.directive('commentsDirective', function(){
$scope.$watch('comments', function(){
angular.element('#comment-list').tinyscrollbar_update('relative');
});
})