View Full Version : How to render viewport in a specific part of an html page

17 Jun 2012, 12:20 PM
Hi there,
As I searched through the forum I found that It's not possible to render a viewport in a specific part of my html page with renderTo property. So I tried to transform my viewport to a panel. It works but It doesn't have the functionalities of the viewport. I want to have a view which fit's to my page automatically whenever the user resizes his browser. But as I found out, Panel fits it's childrens just at the load event.
Is there any other solution to fulfill my requirement?


23 Jun 2012, 4:33 PM
Have a look at Ext.EventManager.onWindowResize(panel.doLayout, panel);

The panel should follow along in the div.