You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, can we use this directive on ng-repeat?
If not can anyone suggest a directive that supports scrolling on ng-repeat, with custom css will be more favorable.
The text was updated successfully, but these errors were encountered:
hey, seems like it is not the matter of ng-repeat.
if i have a hardcoded text in ng-repeat - it works fine.
but if I inotiate a text in controller like $scope.text = 'text....' and then put in directive, like:
I found the problem:
look at
scope.getBarHeight = function () {
var barHeight = Math.max((el.offsetHeight / el.scrollHeight) * el.offsetHeight, minBarHeight);
bar.css({ 'height': barHeight + 'px' });
var display = barHeight === el.offsetHeight ? 'none' : 'block';
bar.css({ display: display });
};
the el.scrollHeight is updating after data binding and scroll bar should update and appear then, but the directive does not know about that and still uses old value of el.scrollHeight, so scrolling bar does not appear!
for now I'm setting watch-content="true" and it works
Hi, can we use this directive on ng-repeat?
If not can anyone suggest a directive that supports scrolling on ng-repeat, with custom css will be more favorable.
The text was updated successfully, but these errors were encountered: