View Full Version : The components in the Window should be resized when the window is resized.
How can the components in the window will be resized when the window is resized.
Note: We are defining few components in the handler function as well.
6 Jul 2012, 2:45 AM
Are you talking about Ext.window or Browser window ? If it is browser window you simply put your component Under Ext.container.Viewport, component will be automatically re-size when browser window resizing.
for more information see http://docs.sencha.com/ext-js/4-1/#!/api/Ext.container.Viewport
It the Browser Window.
I tried placig the component in the Ext.container.Viewport. Now i am getting the below error.
Uncaught TypeError: Cannot read property 'flex' of undefined.
Please suggest the Process.
6 Jul 2012, 3:26 AM
title: 'Hello! Welcome to Ext JS.',
Thanks for you help!!
I tried in the same way but still it is not working. FYI: The header for the application is coming from the PL file.
If i use the Viewport ,the component is getting displayed on the top. ie before the header.
The component is the tabbedpanel that has 3 tabs. And in the each tab we have 1 combo box and 1 button.There are few components(grids) which are defined inside the handler function.They also should be resized once the browser is resized.
6 Jul 2012, 9:54 AM
Please create a small working example of your setup so we can move forward.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.