View Full Version : Content inside the Center div
CorDeth
16 Oct 2007, 3:26 PM
Hi, I have a pretty simple layout with the center div being where I update content from various functions. What's causing me grief is that when I render a grid in this center div it's fine the first time but the next time I render anything (html or another grid) the content is cut off at the size of the first grid. It's like the div is not resizing for the content. I have played around with CSS but to no avail.
catacaustic
16 Oct 2007, 8:18 PM
How are you adding new content to the center?
I'm assuming for a start that you've got a BorderLayout set up and you want your grid and other panels added into the center region. This isn't hard to do. When you want to add something new, you create a new ContentPanel that holds the new content and add that to the center region of your BorderLayout. When you do this, you will either be showing the new panel with the old panels hidden behind it, or you'll see the same, but with Tab's at the top, depending on your config for that region.
This lets you have multiple ContentPanels in the one region, and you can show or hide whichever ones you like.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.