PDA

View Full Version : Viewport & Deferred Render



Entropy
25 Oct 2011, 9:12 AM
I have a viewport. My code uses the .add() to add components to it after creation, and i don't want it to render until they are done. I see autoRender defaults to false, however, when i construct my viewport, without me ever calling show(), the viewport and it's child panels are showing.

Huh? Is autoRender a placebo?

skirtle
25 Oct 2011, 1:02 PM
Why not just create the viewport at the end, specifying the children using the items config option?

mitchellsimoens
25 Oct 2011, 1:59 PM
Why not just create the viewport at the end, specifying the children using the items config option?

When you create an instance of Viewport, it will render. As skirtle said, build an array and pass it in the config o your Viewport.