added some debugging to track the sizes of the web view

Added more debugging info and also a suggested alternative to fix the issue in JavaScript.