use scrollHeight & scrollWidth to avoid getting the wrong size of the content

use $this[0].scrollHeight & $this[0].scrollWidth to avoid getting the wrong size of the content