Finally fixed calculating height of table cell