PDA

View Full Version : FormGrid Example and Viewport



KJD
1 Jan 2010, 4:28 PM
My project is derived from the FormGrid example. I want to have this fit the screen within the browser. I know Viewport and fit are the way to do this but I can not get it to work. Where exactly do I put the viewport? Does it matter if I am also loading data from an XML file?

Condor
2 Jan 2010, 1:27 AM
new Ext.Viewport({
layout: 'fit',
items: gridForm
});
(and remove renderTo:bd)