View Full Version : Window inside a tab panel iframe...how to position to browser?

23 May 2013, 9:23 PM

I have a tab panel where one of the tabs loads another page as an iframe. The page that loads in the iframe opens an extjs window. However, the window is positioned inside the iframe. Is there any way I can get the window to position itself in the center of the browser window instead of the center of the iframe?


28 May 2013, 10:29 AM
Sounds like you'll need to do your own calculations as to where the window will be displayed and use the window's showAt() method. You'll have to inspect the document and its coordinates / dimensions as well as the iFrame's coordinates / dimensions to get how to offset the Ext.window within the iFrame as if it were not within the iFrame.

20 Jun 2013, 3:31 PM
Hi, could you tell me hw you open an iframe.
I'am trying without success. No css and js.

You'll save my day.


20 Jun 2013, 3:34 PM
I'v just found it.

dynamicPanel = new Ext.Component({ autoEl: {
tag: 'iframe',
style: 'height: 100%; width: 100%; border: none',
src: 'http://www.xxxx.dev/data_dev.php/export'
height: 600,
id: 'data_export_iframe',
width: 600