Fix not working
Resize is now almost working
Resize is now fully working

* Now using scrollWidth and scrollHeight to get content dimensions
* Adapted CSS to avoid wrong scrollHeight due to margin collapsing