move height calculation to comment cell