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