PDA

View Full Version : set width when the parent has fit layout



markpele
28 Aug 2009, 6:53 AM
Hi,

I'm using viewport and populating the center region dynamically with panels from the server.
I set the layout of the center region to 'fit' because sometimes I need the child panel to fill the whole width.

The problem is that some of my pages should have a panel in the middle with spaces on both sides. I've tried setting the child panel width but ext ignore it.
Is there a way to do that?

Thanks

Condor
29 Aug 2009, 4:27 AM
You'll need to add an extra panel with ux.center layout and put your panel inside this panel.

(ux.center layout is in examples/ux/CenterLayout.js)