PDA

View Full Version : HOW TO: Change renderTo dynamically for Ext.Window?



ben.gillis
30 Jan 2012, 9:56 PM
Is there a way to programmatically change the renderTo when maximizing an Ext.Window? My windows never exceed the size of the div specified via renderTo. Therefore, I need to pull 'em out of that div, renderTo the body, and programmatically increase the height/width. Then, on minimize, return the window back to the initial div.

mitchellsimoens
31 Jan 2012, 6:49 AM
You could leave renderTo alone and use constrainTo

ben.gillis
1 Feb 2012, 12:24 PM
Thanks for the reply, but that leaves me with other problems. For example, is a maximized window not draggable? (Draggable is true, the window was draggable prior to be maximized. Once maximized, no longer draggable).

mitchellsimoens
2 Feb 2012, 6:12 AM
Thanks for the reply, but that leaves me with other problems. For example, is a maximized window not draggable? (Draggable is true, the window was draggable prior to be maximized. Once maximized, no longer draggable).

I wouldn't expect it to be. It's being maximized to the containing element so therefor it's 100% of the height and width so therefor no space to drag.