PDA

View Full Version : Ext.app.Application's autoCreateViewport has been set to false by default.



TommyMaintz
19 May 2011, 12:51 PM
In the initial 4.0.0 release we accidentally set autoCreateViewport to be true on Ext.app.Application. This caused many people to run into an error when defining their application, causing confusion. This made us decide to change the default value to false.

If you want to automatically instantiate and render your Viewport at the startup of your application, you can create a Viewport class with the name "myApp.view.Viewport" and put that file in app/view/Viewport.js. Then you configure autoCreateViewport: true in your Ext.app.Application definition which will automatically load your Viewport and instantiate/render it.

We are sorry for the confusion that making this API change causes, but we felt strongly about having to make this change.

mberrie
19 May 2011, 9:58 PM
+1 for the change.

API breaking changes and behavior changes in maintenance releases should be highlighted in the release notes though IMHO.

edspencer
22 May 2011, 2:13 PM
+1 for the change.

API breaking changes and behavior changes in maintenance releases should be highlighted in the release notes though IMHO.

Good idea, though I'm hoping this is the only one. We really don't like making such changes inside a major version but this particular issue was causing a lot of people grief.