Added a reference $this to $tableContainer and change the way to take the value of scrollHeight