PDA

View Full Version : ContentPanel fitToFrame on "center" region



arnair
7 Nov 2006, 12:45 PM
Hi,

I have a simple north/west/center layout (all of them have fitToFrame:true) and both the north and west region divs are stretched to fit the frame, but the 'content' div is not.

Is fitToFrame: true ignored for the "center" region? Here's the code snippet:

layout.add( 'center', new YAHOO.ext.ContentPanel( 'content' ), {fitToFrame:true} );
TIA.

jack.slocum
7 Nov 2006, 3:23 PM
layout.add( 'center', new YAHOO.ext.ContentPanel( 'content' ), {fitToFrame:true} ) );

Notice I moved the paren.

arnair
7 Nov 2006, 3:35 PM
Damn, I'm retarded :) Jack, thank you for pointing that out - it of course works after I made that change.