angular-virtual-scroll
angular-virtual-scroll copied to clipboard
Unable to compute height of row
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()?