How to override the direction in which Ext.Panel expands - slide upwards?

How to override the direction in which Ext.Panel expands - slide upwards?

Hi, I am developing a little component that incorporates a panel that slides out like an editor when modifying a gridpanel element. However some times the panel is too big when editing an item towards the bottom of the page and goes out of the browser window.

I have created a method to check whether the panel is out of bounds, and in this case the panel should slide upwards.

Had a dig around the API and found the onExpand code, and think slideIn is defined in Ext.Fx. Does anyone have experience of changing the slide direction for expanding a panel??