PDA

View Full Version : TreePanels in TabPanel - tools not visible problem...



mjoksa
27 May 2009, 3:51 AM
Hello,

I created panel with structure like this:
- west region - contains TabPanel with two tabs (every tab hold one TreePanel)
- center region - contains GridPanel

My problem is with tools in TreePanels - they just do not appear on screen (they are not rendered).

To illustrate this situation I've attached JS files (Ext 3 RC 1.1 is used for creation).

Am I doing something wrong, or is it just some bug in Ext?

Thanks in advance...

Animal
27 May 2009, 4:02 AM
Tools go in a header.

Panels inside a TabPanel to not get headers. They get the tab selector item.

Perhaps tools should be hoisted into the tab selector item. But that's a Feature Request.

If you must have a header inside an item of a TabPanel, add a



{
xtype: 'container',
layout: 'fit',
title: "Whatever"
}


Which contains your Panel with tools.

mjoksa
27 May 2009, 4:27 AM
Thanks Animal...
Your help is always fastests one :)

Cheers