AUI-1170 - Datatable highlight should fit to element on browser window resize

https://issues.liferay.com/browse/AUI-1170

Hey @eduardolundgren, I rebased and updated the if statements to use .inDoc(). I didn't know it existed, thanks!