I'm often creating small tools in Architect ExtJs 4.1, and they all use a viewport and a panel of sort.
the application config has a config autoCreateViewport, this "works"
but how do I set the config of that autocreated viewport?
I need to set layout:'fit'.
I always end up view autoCreateViewport:false and then adding it manually and creating it in app launch. But since ExtJs has the config, and Architect has the "Use as Initial view" config, there must be some logic I'm missing.
I can't really see what the "set as default view" does (in source)
I expected a viewport to be created, even though I had not added it from the component panel, and then have the panel added to the viewport. If that was the case I need to set the viewport to layout:fit somehow.
But if I have to add a viewport manually from the component panel, and then set it as the initial view it's easy to configure. I though that this would give a collision of two viewports, one auto created and then one added manually.
btw, the app structure is simple
- Panel (layout:fit)
- - etc...