angular-virtual-scroll icon indicating copy to clipboard operation
angular-virtual-scroll copied to clipboard

Unable to compute height of row

Open ittayd opened this issue 9 years ago • 0 comments

I use the directive with a div. The div renders fine, but with the subject's error, which I guess means the directive doesn't really work. Looking at the code: 425 newElements = addElements(newValue.start, oldEnd, ident.collection, scope, iterStartElement); 426 rendered = newElements; 427 if( rendered.length ){ 428 rowHeight = computeRowHeight(newElements[0][0]); 429 }

I'm wondering (not really knowing) if the height properties should be updated after adding the elements given that javascript is single threaded. Maybe the call to computeRowHeight should be in $timeout()?

ittayd avatar Sep 26 '15 14:09 ittayd