Currently, I am working on developing a custom myWindow component that extends Ext.window.Window. One important feature that I need to implement is the ability for the window's height and width to automatically adjust based on the size of the HTML content inside it. I am wondering if there is a way in EXT JS or JavaScript to retrieve the dimensions (height and width) of the HTML content for this purpose.