Fixing row height when cloning the original table

Calling $(this).height(height[index]) doesn't do anything as height() doesn't accept any arguments. I switched it to $(this).css('height', heights[index]+'px'); for the original and the copy so that both rows match in height when the pinning takes place.