PDA

View Full Version : Panel with BorderLayout renders no content



js_coder
6 Nov 2009, 9:58 AM
Edit for clarification: The panel renders no child items, but other content is rendered (the tab does display, as does its toolbar)

I am providing this in the config to a Panel contained in a TabPanel (CardLayout):



layout: 'border',
items: [{
region: 'center',
html: 'Test1',
title: 'Test1'
}, {
region: 'south',
title: 'Test2',
html: 'Test2'
}],
Neither child panel is visible however. The only configuration provided other than this that in any way relates to layout is the tbar. Adding dimensions to the regions explicitly does not get them to display. If I remove the layout line in the above code (as well as the region properties on the items), the two items do display as expected.

What should I look for as I try to fix this?

jay@moduscreate.com
10 Nov 2009, 7:55 AM
You're not providing the whole picture!

My first suggestion is to post a reproducable test case instead of a code snippet.