I'm upgrading a legacy app to use Ext Components outside of a layout scheme.

I was finding that the getPosition call was returning the Component's absolute position, not its local position relative to its containing element which meant that the size would be set incorrectly. So I needed to change the code to be